0

I have some validators that in Java and PHP that are using this :print: character class in their regexes to validate input lengths. Any human readable input is valid as long as it doesn't exceed a limit.

In the .Net part we are using the word (\w) characters class. This lead to a bug where lots of characters weren't matched by the .Net regex (ie. #, currencies, so on).

The question is: is \s\S a valid equivalent for :print:? If not what are the other options I have?

Adrian Iftode
  • 15,465
  • 4
  • 48
  • 73

0 Answers0