|
|
Browse by Tags
All Tags » preg_match
-
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 ...
-
Hello all,
I'd like to check on a php page that a text string complies with the following rule : Contain numbers, in ascending order, with only , or - as separators
The numbers represent requested items (like pages to print), my purpose is then to count the ...
-
Hi,
I'm trying to write a regular expression that converts a 'pretty URI' into a standard one in the Apache .htaccess file. I'm doing it in PHP (preg_match) first, since both seem to work similarly.
An example:
page/c-cssstyle/t-template/p-pagenumber/ needs to be converted into ...
-
Hello there, I am using PHP, preg_match to pull out of various Auction titles for video games, the video game platform of those games. I have a list of valid ones and trying to match back to them. However as this is completely user entered data there is a enormous amount of variety in the titles, which leads to some interesting ...
-
In the following string:
<div class="x" bla bla bla <div class="x" bla bla bla <div class="x" bla bla bla EXAMPLE STRING
I want to match: <div class="x" bla bla bla EXAMPLE STRING
NOT
<div class="x" bla bla bla <div class="x" bla bla bla <div ...
-
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 ...
-
Hello,
I am quite new to regular expressions. I have been strugling with a regexp for the most part of tonight and although it has been a slow process I've been making progress. Up untill 3 hours ago. First, let me introduce you to what I'm trying to do. I am sorry if my explanation is bad but I find it quite hard to explain exacly what it ...
|
|
|