Alternations can be used in $match. If you are trying to match ABC anywhere in a text string make sure that you include .* in your regex, e.g.
write $match("Look for abc",".*abc|ABC.*")
Remember that you can use (?i) to ignore case:
write $match("Look for abc","(?i).*ABC.*")
This will return 1 for abc, ABC, aBC...
- Log in to post comments