3 ms·
/(?=((?!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 g
by 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.