Live data from Hacker News

Show HN: Regex Cheatsheet

ihateregex.io

41–50 of 135 posts

Re: Show HN: Regex Cheatsheet

#42
I don't understand why the Github repository lists regexper as the source of the visual graph code but the frame only shows iHateRegex as watermark?

If the only thing that is embedded in that frame was taken entirely from a different project, that project should at least be mentioned in the frame.

Re: Show HN: Regex Cheatsheet

#43
post #19

^[a-z0-9_-]{3,15}$ The username reference doesn't match 16 characters as claimed

I should match. the number 15 there means that repeat x up to 15 times. so 1+15=16. looks good to me

That is not correct. 15 is total maximum number of repeats including the first one. Even the diagram on https://ihateregex.io/expr/username correctly says that loop can be taken between 2 and 14 times.

Re: Show HN: Regex Cheatsheet

#44
post #38

neat site! clicking an example opens up a playground with live update and explanation and railroad diagrams, similar to sites like regex101[1] and regulex[2] one suggestion would be to mention clearly which tool/language is being used, regex has no unified standard.. based on "Cheatsheet adapted" message at the bottom, I think it is for JavaScript. I wrote a book on js regexp last year, and I have post for cheatsheet…

Totally agreed! Right now I only support javascript. But for everything shown there, it's pretty much the same for most flavors

Re: Show HN: Regex Cheatsheet

#50
post #34
post #21

Nobody pointed it out, but there's also https://regexr.com/ It's how I learned regex years ago, and I still use it today to test/build more complex patterns.

My go-to is https://regex101.com/

I love regex101. It uses webassembly for some of its engines
Post reply on HN