slevithan / xregexp

Extended JavaScript regular expressions
http://xregexp.com/
MIT License
3.31k stars 278 forks source link

how would i go about finding out what this does? (the 27 is just my favorite number below...) #302

Closed cellurl3 closed 4 years ago

cellurl3 commented 4 years ago

XRegExp('^(.{'+27+'}(?:\p{L}|\'’))(.)', 's')

thanks for any tools,tips...

Newbie Jim

josephfrazier commented 4 years ago

Your best bet is probably to paste the pattern (^(.{'+27+'}(?:\p{L}|'’))(.)) into https://regexr.com/ or another website that explains regular expressions. You might also want to take a regex tutorial to (re) familiarize yourself with the concepts. Here's one I just found by searching for regex tutorial: https://blog.usejournal.com/regular-expressions-a-complete-beginners-tutorial-c7327b9fd8eb