Clear all

[Solved] Message Source Polls: How can I match a string regardless of case?


Topic starter

We have a case where a client is sending files with both lower and upper case ".csv" file extensions.  I'd like to know how to match either the whole pattern, or even just the ".csv" portion of the pattern ignoring case.

1 Answer

Prefix your pattern with (?i) to make it case insensitive.

For example if you have file FOO.txt

.*\.TXT => non-match

(?i).*\.TXT => match
© 2020 One Network Enterprises. All rights reserved. Privacy Policy