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 » regex
  • PHP scrape and regex problems ... how to exclude?

    Got a problem ... I've got a php-script that scrapes a schedule system for a school ... The output/feed will be displayed as a ticker (Jticker) at the bottom of information monitors around the buildings. The scrape works just fine and the feed as well, I've even managed to modify it so that it passes with no-errors at feedvalidator.org ...
    Posted to Construction Advice (Forum) by Tomas Johansson on November 28, 2008
  • only the word coming after a value (PHP)

    Hi, I am learning regex nowadays. Now, i am stuck because i cant find how to do it anywhere. I need to retrieve a word coming after a value. For example, i need to retrieve the value of the PPFT below: <input type="hidden" name="PPFT" id="i0327" ...
    Posted to Construction Advice (Forum) by sayim on August 24, 2008
  • Matching quotes strings with escaped quotes with multiple occurances

    Hi there, After hours of searching i found nothing that worked. I've got the following string and i want to match all parts between single quotes. It has to deal with user input so the next example is valid: (the both outer double quotes are to show what the sentence is)   "hello world, this is a 'quoted string' using ...
    Posted to Construction Advice (Forum) by badgerx on June 2, 2008
  • Finding php variables

    Hi! I don't know what's wrong but my expression just doesn't work. I have to find all php variables e.g. $variable $variable['array'] $variable -> objectData or something more complicated $variable['array'] -> objectNode['arrayindex'] -> somethingelse -> somethingelse2 I tried this one: $param = ...
    Posted to Construction Advice (Forum) by Hellson on August 25, 2007
  • 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
  • Find substring

    Hello everybody, I almost feel bad about writing here - but I really tried for days now. I need a string filtered (matched) from a string like this:   @s My Company Ltd@o My-Street-adress 123@o New York@pt 123-35-144@t Mobile@pt 593-1195-1395   I am trying to filter out the company´s name (which always is from the beginning of ...
    Posted to Construction Advice (Forum) by christophn on April 25, 2007