Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed possible typos and optimizations in regular expressions (#31)
* Fixed possible typos and optimizations in regular expressions * [0-9A-Za-z_] is the same as \w ~~ * [s|S] the included pipe character for alternating between characters is not supported in a list [] and will cause the pipe character to be literally matched, any character in a list will be literally and optionally matched. [sS] will match either s or S.~~ * The expression [tT][eE][sS][tT] can be optimized to allow case-insensitive matching of "test" by including the (?i) option before the expression, and alternatively (?-i) after the expression to disable case-insensitive matching. E.g "(?i)test(?-i)ing" will match "TESTing" as well as "testing" * fixed escapes and added another bugfix ($ sign) Co-authored-by: Björn Sundling <[email protected]>
- Loading branch information