Php and python regexp difference?

Posted by Ajel on Stack Overflow See other posts from Stack Overflow or by Ajel
Published on 2010-05-26T14:01:24Z Indexed on 2010/05/26 14:11 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

I need to parse a string 'Open URN: 100000 LA: ' and get 100000 from it. on python regexp (?<=Open URN: )[0-9]+(?= LA:) works fine but in php it gives following error:

preg_match(): Unknown modifier '['

I need it working php, so please help me to solve this problem and tell about difference in python and php regexps.

© Stack Overflow or respective owner

Related posts about php

Related posts about python