ChristianB
12 years agoContributor
What is the tilde (~) character doing in regular expressions
Hi all!
I know soapUI follows the Java style RexExp constructs, as documented here:
http://www.jdocs.com/javase/7.b12/java/ ... ttern.html
http://support.smartbear.com/viewarticle/55518/
I was looking at the regular expressions used in the Global Sensitive Information Tokens preferences:

I know and understand that the (?s) flag is used, so that whitespace matches include line breaks (DOTALL flag: http://www.jdocs.com/javase/7.b12/java/ ... L#F-DOTALL ), as was explained here: viewtopic.php?t=588
But what I don't understand is why the tilde is included in all of those regexp. It doesn't show up in either soapUI's regex documentation - or Java's.
I'd be grateful for any hints and explanations...
Best regards,
Christian
I know soapUI follows the Java style RexExp constructs, as documented here:
http://www.jdocs.com/javase/7.b12/java/ ... ttern.html
http://support.smartbear.com/viewarticle/55518/
I was looking at the regular expressions used in the Global Sensitive Information Tokens preferences:

I know and understand that the (?s) flag is used, so that whitespace matches include line breaks (DOTALL flag: http://www.jdocs.com/javase/7.b12/java/ ... L#F-DOTALL ), as was explained here: viewtopic.php?t=588
But what I don't understand is why the tilde is included in all of those regexp. It doesn't show up in either soapUI's regex documentation - or Java's.
I'd be grateful for any hints and explanations...

Best regards,
Christian