|
|
Browse by Tags
All Tags » pcre » php
-
It's OK, I think I've found the answer to my own question. The # signs bracket the actual regular expression, and the e and the s are modifiers - e is equivalent to PREG_REPLACE_EVAL and s is equivalent to PCRE_DOTALL. Maybe these are things which are so familiar to the experienced players that they almost go without saying, but ...
-
I have the following regex statement I'm trying to run in PHP.
(?<!(end\s?zone|lower|upper)\s?)(view)
Testing against the following string: (matches in bold)
"The endzone view goes hi upper view and he goes view and then goes view and view and view!!!"
Notice "upper view" and "endzone view" are ...
-
kyeno:
Wow, it works m8.
Thanks a lot! Been tryin to solve it with a friend of mine for about 3 hours...
Always happy to help.
kyeno:
Looks i'll have to master the PCRE syntax.
Any good sites about it You could recommend? I mean like step-by-step tutorials for noobs. :)
As I mentioned in another thread several minutes ago ...
-
I understand that you want to match all the category names, i.e. the content of every <td></td> after an <tr>.
If I remember correctly, PHP's POSIX extended regular expressions don't know ungreedy quantifiers. I prefer Perl Compatible Regular Expressions (PCRE) anyway ...
-
Hello,
I have written a regular expression that I think is syntactically correct but it when used with some versions of php it will cause a segmentation fault. While PCRE Version 7 is being accused for this bug it's not of much help to me. I am wondering if perhaps there is a way to rewrite the expression. Maybe someone has ideas on an ...
-
I've been trying to match the pattern below for about a week and
can't seem to get it right. I need to match a specific string that is
not hyper-linked or enclosed in brackets.I'm sure the code below won't
match what i need. It's simply to illustrate what i'm aiming to
accomplish:
[^\{] word here[^\} ]
Any ...
|
|
|