I am trying to use a regular expression in a trigger filter. My requirement is that it can have multiple spaces in a field. I was trying the following which is not working. can anyone please tell me a good regular expression for me to use. (%var% /“^ *$”/)
if u r getting only the spaces… then remove the spaces using replace service in wmpublic package and have a string in filter with no spaces in it… just a thought.
It’s my mistake. Actually, not all regex conditions are valid in Broker. Those regex conditions invalid in Broker will be in IS Level. developer guide lists the regex not accepted in broker
The ‘^’ signifies the beginning of the string and the ‘$’ signifies the end of the string. So the above regex only matches something that is ALL spaces.
/ */ will do 0 or more spaces
/ +/ will do 1 or more spaces (as pointed out already)