Escaping in Assertions
Posted: Sun Sep 30, 2012 11:52 am
Hello everybody,
i have the following string:
[text]
Ref-Nr. : xai2i31iw
[/text]
and i'm trying to get "xai2i31iw" as value with preg_match.
I'm struggling with escaping the Ref-Nr.
i tried the following regex with a look behind assertion: [text]#(?<=Ref\-Nr\.\:).*#[/text]
But it doesn't work...
I would appreciate every help because i'm pretty new to regular expressions and google / forums search don't bring up any information that help me solving this problem.
Thanks
Sythus
i have the following string:
[text]
Ref-Nr. : xai2i31iw
[/text]
and i'm trying to get "xai2i31iw" as value with preg_match.
I'm struggling with escaping the Ref-Nr.
i tried the following regex with a look behind assertion: [text]#(?<=Ref\-Nr\.\:).*#[/text]
But it doesn't work...
I would appreciate every help because i'm pretty new to regular expressions and google / forums search don't bring up any information that help me solving this problem.
Thanks
Sythus