Notifications
Clear all

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

1 Posts
2 Users
0 Reactions
1,054 Views
0
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
0

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

For example if you have file FOO.txt

.*\.TXT => non-match

(?i).*\.TXT => match