News for hackers. Stuff that matters.
Re:OCaml 4.10 by idbehold on Saturday February 22, 2020 @10:34AM (#22391487)
Still no regular expression negative look-aheads?
Re:OCaml 4.10 by yawaramin on Saturday February 22, 2020 @09:24PM (#22394683)
Are you sure you're asking in the right thread? OCaml has a binding to the PCRE library: https://mmottl.github.io/pcre-ocaml/

...the question seems moot to me.

Re:OCaml 4.10 by alharith on Saturday February 22, 2020 @01:06PM (#22392348)
If you need a regex that complicated it’s probably better to be written as a parser. Not only will it be way more performant, it will be much more maintainable.
Re:OCaml 4.10 by leoh on Saturday February 22, 2020 @07:14PM (#22394230)
I agree that if you're designing a system from scratch this makes sense. Ocassionally you need to extend the syntax of an existing system that is written with regular expressions and would require a negative lookahead. Some sub-parser with negative lookahead functionality would be possible, but a regex would be more convenient in a pinch.