shreyasminocha / regex-for-regular-folk

🔍💪 Regular Expressions for Regular Folk — A visual, example-based introduction to RegEx [BETA]
https://refrf.dev
286 stars 23 forks source link

Replace Regexper with Regulex #21

Open shreyasminocha opened 4 years ago

shreyasminocha commented 4 years ago

As suggested by @vezycash in #10.

shreyasminocha commented 4 years ago

I tried doing this, but I'm having some trouble with getting Regulex to recognize flags in query parameters. When I click the link to the Regulex for say /#([0-9A-F]{3}|[0-9A-F]{6})/g, it doesn't recognize the g flag until I manually check the checkbox.

I'm blocked on this.

vezycash commented 4 years ago

You're right. I'm looking into it.

vezycash commented 4 years ago

I've filed an issue on the problem. https://github.com/CJex/regulex/issues/46

Hopefully it's fixed asap.

vezycash commented 4 years ago

Untitled

Although the /g flag is stripped from the url, I noticed it still shows up on the page - like in the picture. What do you think?

vezycash commented 4 years ago

One last thing Capture

Please check if typing the flags as part of the regex code like in the picture works. I don't know enough about regex to test it myself.

https://jex.im/regulex/#!flags=&re=%23(%5B0-9A-F%5D%7B3%7D%7C%5B0-9A-F%5D%7B6%7D)%2Fg

shreyasminocha commented 4 years ago

Although the /g flag is stripped from the url, I noticed it still shows up on the page - like in the picture. What do you think?

Yeah, I noticed that. It's very odd and I have no idea what might be up.

Please check if typing the flags as part of the regex code like in the picture works.

It does not, unfortunately. It looks for the literal string /g, rather than interpreting it as a flag.

I've filed an issue on the problem. CJex/regulex#46

Thanks, I'll subscribe to it.