Passing regex arguments
Passing regex arguments
I was wondering if there was any way to pass a regex argument to mudlet (such as making a regex case insensitive).
Re: Passing regex arguments
http://www.pcre.org/pcre.txt:
->OPTION SETTING
(?i) caseless
(?J) allow duplicate names
(?m) multiline
(?s) single line (dotall)
(?U) default ungreedy (lazy)
(?x) extended (ignore white space)
(?-...) unset option(s)
(?i)^test$
Re: Passing regex arguments
Doesn't seem to work in a tempRegexTrigger
hlTarget = tempRegexTrigger("(?i)\\b"..target.."\\b",...)
still matches the pattern, but only exactly as it stored, not case insensitive.
hlTarget = tempRegexTrigger("(?i)\\b"..target.."\\b",...)
still matches the pattern, but only exactly as it stored, not case insensitive.