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
localregex=require"pluto:regex"localpattern=newregex[[/the (only )?one/i]])
print(pattern:matchesFully("THE ONE"))
pattern=newregex[[/anywhere from (\d+) to (\d+)/]]localmatch=pattern:match("anywhere from 3 to 5")
-- 'match' would be nil if doesn't match, or a table with fields for each capture group (0 being the whole match, 1 and up being regular capturing groups, and string indecies for named capturing groups.)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: