Hello,
I need to find a solution to "match" on a string which does NOT contain certain words. I've used a few regular expression "testers" to validate my expression, however, it doesn't seem to work the way I would have expected using EasyTrigger in an event. Maybe the double negative is confusing me though.
Would someone mind giving this a look and let me know if you think there's an issue:
^((?i)(?!rain|freezing|ice|icy|showers).)*$
So, if the input string was: "Sunny with a few clouds" or "overcast and crappy", these would result in a "match" (or what I would consider to be "true" in an IF/Then event).
However, if the string was: "Cloudy with light showers" or "Freezing rain", the result should NOT be a match, or be considered false for the IF/Then event.
Is there something I'm missing or something else required for EasyTrigger's implementation of Regular Expressions?
One of the online "testers" I used was: https://regex101.com/
Thanks!
I need to find a solution to "match" on a string which does NOT contain certain words. I've used a few regular expression "testers" to validate my expression, however, it doesn't seem to work the way I would have expected using EasyTrigger in an event. Maybe the double negative is confusing me though.
Would someone mind giving this a look and let me know if you think there's an issue:
^((?i)(?!rain|freezing|ice|icy|showers).)*$
So, if the input string was: "Sunny with a few clouds" or "overcast and crappy", these would result in a "match" (or what I would consider to be "true" in an IF/Then event).
However, if the string was: "Cloudy with light showers" or "Freezing rain", the result should NOT be a match, or be considered false for the IF/Then event.
Is there something I'm missing or something else required for EasyTrigger's implementation of Regular Expressions?
One of the online "testers" I used was: https://regex101.com/
Thanks!
Comment