Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
njonsson
· 6y ago · 0 comments
I got a lot of mileage out of the
x
modifier, too, until I bumped into the Composed Regex pattern.
https://www.martinfowler.com/bliki/ComposedRegex.html
Comments
[–]
brigandish
6y ago
Nice explanation (as expected from Fowler). Yep, mix that with a bit of interpolation and an iterator, maybe wrapped in an object and you have something readable and flexible. Not sure why people want to make regex any harder than they need to be?