Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

Why is the Regex expression not matching accordingly?

$
0
0
Hi   I’ve created a custom regex at https://regex101.com/ which should match a special set of characters;  !"`'#%&,:;<>=@{}~$()*+?. This gives the Regex expression: [!"`'#%&,:;<>=@{}~$()*+?\[\]\^\|]+ An example string : “!code”  gets matched accordingly to the pattern (it contains “!”). When I use this pattern in Mendix with the “isMatch” function, to know whether a String has special characters,ike  isMatch($String,'[!"`''''#%&,:;<>=@{}~$()*+?\[\]\^\|]+') In Mendix the example string “!code” gets NOT MATCHED, while it should be (it contains “!”).   This brings me to the question, why is the regex pattern working on the regex site and not in Mendix? Is there something I missed? Thanks, EDIT1: Using same regex as Regex expression in a Entity validation rule DOES MATCH the example string, strange.

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>