Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » preg_match » php
  • Problem with negative lookbehind in PHP PCRE Library.

    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 ...
    Posted to Construction Advice (Forum) by simshaun on May 6, 2008
  • Ascending numbers with specific separators

    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 ...
    Posted to Construction Advice (Forum) by ldauphin on February 8, 2008
  • Find first previous string NOT all previous occurances

    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 ...
    Posted to Construction Advice (Forum) by LarryEitel on June 9, 2007
  • Rewriting a regexp to avoid segmentation fault in php

    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 ...
    Posted to Construction Advice (Forum) by kajic on April 21, 2007
  • Problem matching anything other than a certain string

    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 ...
    Posted to Construction Advice (Forum) by kajic on April 17, 2007