4 ms·
I looked at the VerbalExpressionJS[1] example and it looks like combining parsers to me. If you need to make regex more verbose, better use parser combinator li
by qrobit 1y ago
I looked at the VerbalExpressionJS[1] example and it looks like combining parsers to me. If you need to make regex more verbose, better use parser combinator library when available. RegEx benefits compared to parser combinators other than compactness aren't obvious to me.
[1]: <https://github.com/VerbalExpressions/JSVerbalExpressions/tree/34a9dddc18132f167fb4f4ceabbd7358e22bf7d8#testing-if-we-have-a-valid-url https://github.com/VerbalExpressions/JSVerbalExpressions/tre...>