0

I am quite new to regular expressions and UTF-8. So there are some characters, mainly symbols which I need to elmininate. So I need a Regex where I can check if a String contains some specific characters. What is the easiest way to do this?

https://de.wikipedia.org/wiki/UTF-8

There in the table the first two rows for example and the DEL symbol.

Reason is, that some of these characters Users type in are not printable so it will lead to problems when exporting the input to a pdf for example.

EDIT:

I want to use the Regex.test() method from Javascript: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test

So I have a String, which contains one character I don't want and when I pass it to the test() method it will return false.

user5417542
  • 3,146
  • 6
  • 29
  • 50

0 Answers0