Lurker News

Comments (108) 46 threads

Earlier comments
arthurofbabylon#
In case it's useful for others, I found "Mastering Regular Expressions" by "Jeffrey E. F. Friedl" to be very effective for becoming proficient with Regex.

Also – reading it was just a useful look into systems mapping (which is what language is!) with insights that apply in many contexts.

cjhveal#
Great work! These examples are super clear.

One thought: it would be great to highlight a given match on hover. I know that each match has its own undertie and it's explicitly mentioned early on but it might help really drive it home if each match reacted individually when hovered.

olq2 replies#
Nice guide! As a complete regex-dyslectic i didn't know the slash '/' could be used to make expressions more readable.

On another note, since this is supposed to be a book and all, is there a simple way to get this on one a single page and make it easier to print?

catblast1 reply#
That's not really true. The guide seems to be javascript centric. The slash and flags is not part of the regex, it's a delimiter. In certain contexts like sed, perl, php, an arbitrary delimiter can be used to avoid needing to escape slashes. If you pass a string to a regex engine with a /, it does what you would expect, match a literal /. For instance, python and grep does not interpret slashes and flags. Those are pretty common.
olq#
Thanks for the heads up, it seems i have some more reading to do :)
olq1 reply#
I don't know what that is but just having all html pages merged into one would be enough and super useful for me and my printing purposes, and probably good for web UX too. Keep up the good work mate
shreyasminocha#
Yeah, I messed that up late last night. Fixed!

Load more comments