user__ has quit [Remote host closed the connection]
mbuf_ has joined #ocaml
mbuf has quit [Ping timeout: 252 seconds]
mbuf_ is now known as mbuf
mjs22 has joined #ocaml
Serpent7776 has joined #ocaml
toastal has left #ocaml [Error from remote client]
mjs22 has quit [Quit: Konversation terminated!]
mbuf_ has joined #ocaml
mbuf has quit [Ping timeout: 276 seconds]
mbuf_ is now known as mbuf
mjs22 has joined #ocaml
mjs22 has quit [Quit: Konversation terminated!]
bhoot has joined #ocaml
Tuplanolla has joined #ocaml
bartholin has joined #ocaml
bartholin has quit [Ping timeout: 265 seconds]
bartholin has joined #ocaml
mbuf_ has joined #ocaml
mbuf has quit [Ping timeout: 276 seconds]
mbuf_ is now known as mbuf
TCZ has joined #ocaml
famubu has joined #ocaml
<famubu>
Hi. Could there be a way to convert python regular expression (import re) to ocaml regex used by Str.regexp ?
<famubu>
I had a bunch of python regexp which I wanted to be able to use from ocaml..
TCZ has quit []
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Anarchos has joined #ocaml
waleee has joined #ocaml
micro has quit [Ping timeout: 276 seconds]
micro has joined #ocaml
<discocaml>
<otini_> you may want to switch to a more complete regexp lib like Re (yes, there is an ocaml library with that name) which has Perl syntax among others.
<discocaml>
<otini_> (it looks like python’s re uses Perl syntax)
Anarchos has quit [Read error: Connection reset by peer]
toastal has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<famubu>
otini_: A more capable Re is better. Thanks.
<famubu>
I guess there's no way around parsing the python re expressions by myself into an intermediate form and then converting it to ocaml re?
<famubu>
Since python re has no formal grammar, it's going to be messy.
<discocaml>
<yawaramin> isn't OCaml's re using the same syntax as Python's re?
<famubu>
Oh is it? You mean the stdlib one or the 3rd party re?
<discocaml>
<ada2k> 3rd party one
<discocaml>
<ada2k> it has submodules for different syntaxes, perl is one of them
tomku has quit [Ping timeout: 265 seconds]
tomku has joined #ocaml
<famubu>
Okay I see it. So pcre version maybe similar to python re, I guess?