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

Browse by Tags

All Tags » php regular exp... » regex
  • RegEx PHP difficulties

    Hi! The given construction checks strings in the following format for a validation process of a user input. AB 123 YZZ-4 CD 123 OP-4 LUA EF 321 OP-4 RegEx: ^(?:AB|CD|EF)\s\d{1,3}(?:(\s[A-Z]{1,4}-?\d{1,3}?\s?[A-Z]{0,4})|-\d{1,2}) I checked it with the Expresso 3.0 regex software - working fine. When I insert it into my PHP script ( ...
    Posted to Construction Advice (Forum) by Andre on August 19, 2007
  • 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