A flag is an optional parameter to a regex that modifies its behavior of searching . A flag changes the default searching behaviour of a regular expression. It makes a regex search in a different way. A flag is denoted using a single lowercase alphabetic character.
Read moreWhat does regex match return?
The Match(String) method returns the first substring that matches a regular expression pattern in an input string . For information about the language elements used to build a regular expression pattern, see Regular Expression Language – Quick Reference.
Read moreHow do you add or condition in regex?
This pattern will match:
Read more