A good habit is to use the hex equivalent character for any character that has a
special meaning in pregex expressions. e.g.,
space = \x20
"/" = \x2f
"." = \x2e
double quotes = \x3d
etc.
Then you won't have this type of problem and you won't have to use stuff like
this:
This is for double quo
On Fri, 2008-01-18 at 12:28 +0200, Nikolay Ananiev wrote:
> This is for double quotes:
> '/"[^"]*(?:.[^"]*)*"/'
>
> this is for single:
> '/\'[^\']*(?:.[^\']*)*\'/'
>
> i took these from the smarty compiler class.
Has anyone started a commonly used PCRE Regexp library? I
This is for double quotes:
'/"[^"]*(?:.[^"]*)*"/'
this is for single:
'/\'[^\']*(?:.[^\']*)*\'/'
i took these from the smarty compiler class.
"mathieu leddet" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi everyone,
I am struggling with regular expressi
Max Antonov schreef:
mathieu leddet writes:
Hi everyone,
I am struggling with regular expression trying to match strings
delimited by double quotes, but taking into consideration that \" is not
a string ending character.
..
// pattern for catching strings between "
$pattern = '#"([^"]*)"
mathieu leddet writes:
Hi everyone,
I am struggling with regular expression trying to match strings
delimited by double quotes, but taking into consideration that \" is not
a string ending character.
..
// pattern for catching strings between "
$pattern = '#"([^"]*)"#';
.
$out conta
5 matches
Mail list logo