20 ms·
(?=((?!exp).)*a.*) is also wrong; it doesn't match "expba", but (?~exp)a.* does.
by rntz 10y ago
(?=((?!exp).)*a.*)
is also wrong; it doesn't match "expba", but
(?~exp)a.*
does.
- mnarayan01 10y ago/(?=((?!exp).)*a.*)/ =~ "expba" # => 1 for me at least (using #match is also truthy, but the matched string is not what I'd guess the absent operator would give).
- rntz 10y agoHuh! Now I am super confused.