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

Browse by Tags

All Tags » lookbehind
Showing page 1 of 2 (12 total posts)
  • Need an expression to find all text between numeric identifiers

    Hello, I am using C# in Visual Studio 2008.  I have a text file of the entire Bible that I am wanting to either put into a database or write to an XML document.  The format of the text is as follows with comments in C# single line comment style to the right of the actual text (example: Genesis  //book ...
    Posted to Construction Advice (Forum) by RandyHJ on May 13, 2008
  • 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
  • lookbehind simulation for app with no +ve lookbehind support

    I'm using WOA pdf-Excel to extract values from a table. An example of a line in the table would be, say: itemname  12,123  23,456  34,789 using lookbehind, I can easily extract the numbers using the regex (?<=itemname\s+(\d+,\d+\s+){n})\d+,\d+    where n=0,1,2 to extract the 3 numbers. But, there's no ...
    Posted to Construction Advice (Forum) by scubamut on November 22, 2007
  • Meta-regex to find fixed length of regex match (XSLT)

    In the context of the regex dialect of XSLT 2.0, I am looking for two "meta-regexes" that analyse other regexes. Each is discussed in a part of its own. (Part 1 posted as: Meta-regex for variable-length matching regexes (XSLT)) Part 2 Aim: A regex that provides for pre-calculating the length of the match that a fixed-length matching ...
    Posted to Construction Advice (Forum) by yvesforkl on October 2, 2007
  • Meta-regex for variable-length matching regexes (XSLT)

    In the context of the regex dialect of XSLT 2.0, I am looking for two "meta-regexes" that analyse other regexes. Each is discussed in a part of its own. (Part 2 posted as: Meta-regex to find fixed length of regex match (XSLT)) Part 1 Aim: A regex that would identify all those regexes that might yield matches of varying length, as ...
    Posted to Construction Advice (Forum) by yvesforkl on October 2, 2007
  • Playstation Parsing Problem

    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 ...
    Posted to Construction Advice (Forum) by plynam on July 26, 2007
  • Re: Find string outside of quotes

    This sadly is not so easy to do with regular expressions. I had a very similar problem in my first post to this board. To match only unquoted strings your pattern would have to keep count of quotes in front of potential matches, not counting the escaped quotes etc. If these lookbehind assertions were possible, they would be of variable length, as ...
    Posted to Construction Advice (Forum) by eSquire on May 4, 2007
  • Re: please suggest me the regex for this piece

    This pattern might do what you need.  (?ms)(?<=^(TO|INFO)\s).*?(?=\s+^(?:INFO|GR)\s) It will only work reliably if there are no two other lines starting with TO, INFO or GR in the message body, i.e. after the first GR. It will return one or two matches, depending on the presence of the INFO part.  You will have to split those ...
    Posted to Construction Advice (Forum) by eSquire on May 4, 2007
  • Cannot get lookahead and lookbehind to work

    Hello, I wonder if you can help me, this is driving me crazy! I have a large text file and I want to find a term in it. But... I only want the regex to be successful if this term is NOT encompassed by square brackets. e.g. this is the search term:    sp_W_rev_CreditClient_RMAItems I do not want this to be ...
    Posted to Construction Advice (Forum) by Major Problem on May 2, 2007
  • Re: RegEx to split string with a "," except "\,"

    The problem is with the way you are looking. When you check the character before the , you are telling the regular expression to include it. Use this expression which has a lookbehind expression in it. It will check the character before the comma and not include it in the match. (?<=[^\\]), I hope that helps, Brendan 
    Posted to Construction Advice (Forum) by Brendan on April 18, 2007
1 2 Next >