Difference between revisions of "Category:Command Group: Strings - Regular Expression"
m (R3vo moved page Category:Command Group: regex to Category:Command Group: Regular Expression (Regex) without leaving a redirect)
Revision as of 08:27, 25 April 2021
- g - global (only relevant for replace/find, missing global flag sets format_first_only flag https://en.cppreference.com/w/cpp/regex/match_flag_type and only replaces first occurence, only returns first element with regexFind)
- i - Case insensitive
- n - nosubs (https://en.cppreference.com/w/cpp/regex/syntax_option_type)
- o - optimize (Optimize pattern, pattern creation is slower, but will execute more efficiently, https://en.cppreference.com/w/cpp/regex/syntax_option_type)
If you don't specify any flags, the default flags are set to /gi, its valid to specify / to indicate no flags, first match only, case sensitive