slevithan / xregexp

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

xregexp capture all groups and pos for each match #267

Closed mafar closed 5 years ago

mafar commented 5 years ago

I created an issue here @stackoverflow

Is it possible to get a result similar to https://regex101.com by using xregexp where one is able to see full match , groups and matched string postion as well regex https://regex101.com/r/HZ7O0l/1 try fiddle https://jsfiddle.net/bababalcksheep/o4qn7jwe/6/

klesun commented 5 years ago

Please answer, your lib is our only hope!

klesun commented 5 years ago

Apparently it's not possible with this lib, since it uses built-in js implementation for execution, a bummer: https://github.com/slevithan/xregexp/issues/217