regex-for-regular-folk icon indicating copy to clipboard operation
regex-for-regular-folk copied to clipboard

Replace Regexper with Regulex

Open shreyasminocha opened this issue 4 years ago • 6 comments

As suggested by @vezycash in #10.

shreyasminocha avatar May 03 '20 11:05 shreyasminocha

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.

shreyasminocha avatar May 03 '20 11:05 shreyasminocha

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

vezycash avatar May 05 '20 07:05 vezycash

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

Hopefully it's fixed asap.

vezycash avatar May 05 '20 08:05 vezycash

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 avatar May 05 '20 08:05 vezycash

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

vezycash avatar May 05 '20 08:05 vezycash

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.

shreyasminocha avatar May 05 '20 09:05 shreyasminocha