ocaml-re icon indicating copy to clipboard operation
ocaml-re copied to clipboard

Pure OCaml regular expressions, with support for Perl and POSIX-style strings

Results 46 ocaml-re issues
Sort by recently updated
recently updated
newest added

I haven't figured out how to get dune+odoc to render the [main module comment on ocaml.org](https://ocaml.org/p/re/1.10.3/doc/Re_posix/index.html) correctly though. However compile and compile_pat's documentation were swapped, and it is best to...

Changed it so it mentions 2.1 instead of 2.0 and it now follows the SPX format for licenses. The opam repository should be changed as well, this affects alls versions...

This makes the main loops about twice as fast by removing one memory access on the critical path and reducing the number of instructions executed per iteration. The downside is...

- simplify the main loop - use strings rather than bytes for immutable byte arrays

Tries to fix issue #208.

The functions `exec`, `exec_opt`, `all`, etc. in the Re module still uses the `substrings` alias although it has been marked as deprecated.

The following creates a process lock: ```ocaml let rex = Re.Pcre.regexp "^ *";; Re.Pcre.substitute ~rex ~subst:(fun _ -> "") "Condition which should be satisfied.";; ``` I understand that the `*`...

This pcre generates a parse error: ```ocaml Re.Pcre.regexp "#{([^}]*?)}" Exception raised: Re__Perl.Parse_error Raised at Re__Perl.parse.atom in file "lib/perl.ml", line 168, characters 40-57 Called from Re__Perl.parse.piece in file "lib/perl.ml", line 83,...

Hello, Currently, there are parsers for multiple syntaxes of Regex. I was wondering how complicated it would be to add printers too. This would be quite useful for https://ligolang.org/ :...

Like Str itself, Re.Str is not thread safe as it relies on global internal state. Initially I thought that Re.Str might be thread safe (e.g. if you only use functions...