rbiparser icon indicating copy to clipboard operation
rbiparser copied to clipboard

corrected misleading variable name

Open hiteshbedre opened this issue 2 years ago • 1 comments

When we define ^ in a square bracket it negate the matches. Example: [^abc] : matches any char except a, b or c. [^a-z] : matches any character except lower alphabets [^a-z0-9] : matches any character except lower alphabets and numbers

So changed name of variable to non_alphanumeric. Here I have created playground for same scenario: https://regex101.com/r/zmEBu2/1

hiteshbedre avatar May 03 '23 08:05 hiteshbedre

If I assume you wanted to match only alphanumeric string only then we just need alter the pattern to [a-z0-9] keeping variable name same.

hiteshbedre avatar May 03 '23 08:05 hiteshbedre