You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at the source code, and unlike {foo|bar} which would be compiled to ^(foo|bar)$, it seems that %!{foo|bar} is compiled to ^foo|bar$ instead of what I thought was ^(?:foo|bar)$, which led to me actually having to pass %!{(:?foo|bar)} in order to get to my goal, and to be honest, it looks kind of ugly.
[ ] . + | ( ) ? * are treated as normal text unlessed used within
braces. Keep in mind that { } is replaced with ( ) automatically
unless %!{ } is used.
#help regex
:Minimal Workable Example:
Since you can't use
^
and$
in#if
, there is effectively no workaround for this error.The text was updated successfully, but these errors were encountered: