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
Currently, X[] gives `(?:)`, which matches the empty string. However, since X with a List argument is supposed to generate a regex that matches any of the elements of the list, would it make more sense for X[] to generate a regex that doesn't match anything? One example where it would make a difference is XlNa, which counts the number of regex matches for elements of l in a. If l is empty, it would seem that the answer should be 0, but currently the result is equal to #a+1.
The text was updated successfully, but these errors were encountered:
Currently,
X[]
gives`(?:)`
, which matches the empty string. However, sinceX
with a List argument is supposed to generate a regex that matches any of the elements of the list, would it make more sense forX[]
to generate a regex that doesn't match anything? One example where it would make a difference isXlNa
, which counts the number of regex matches for elements ofl
ina
. Ifl
is empty, it would seem that the answer should be0
, but currently the result is equal to#a+1
.The text was updated successfully, but these errors were encountered: