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

Browse by Tags

All Tags » regexp » matching specific instances of a string
  • Using RegExp in XSLT

    Hello all, Im using XSLT to grab data from an XHTML page, part of the data I wish to grab is a Postcode, this is the XSLT statement I have to grab the postcode:        <xsl:for-each select=".//h:a[starts-with(@href, ...
    Posted to Construction Advice (Forum) by james on January 11, 2007
  • Matching Inputs and Displaying

    Hi, I'm having some trouble with my code. I'm using python to take in information from a form/website in order to link the user to another website. My problem is thus: ------------------------------------------------ ae = re.compile('[A-E]') fl = re.compile('[F-L]') mw = re.compile('[M-W]') if ...
    Posted to Construction Advice (Forum) by newb101 on December 9, 2006
  • Finding character with an accent

    Hello! I have a problem writing an expression where I want to match all characters with an accent. I will have a text where the character é (or á) will appear and I just want to find this character or any character with an accent. I have tried all sorts of combinations with \P{Mn} but I don't get it to work. If I write an ...
    Posted to Construction Advice (Forum) by schabbelfarfar on November 21, 2006
  • Search for two (or more) strings in a text file with one pattern (using grep)

    Okay, say I have this text file: bash-2.03$ cat test.txt The quick brown fox The silly black fox The code sequence is alpha foxtrot hotel tango. The elephant smokes pot. I want to be able to extract lines containing the words "The" and "foxtrot". I can achieve this easily by piping the file into grep, searching for one pattern, ...
    Posted to Construction Advice (Forum) by aaronak on November 3, 2006
  • Newbee: Replace word (C#)

    Hi I have a formulam represented like a string: @X1 + @Y2/ @X + @Y, where @xxx are variables which are replaced with a numeric value. Question 1:  Instead of myFormular.Replace("@X", "1234") I want to use a RegEx pattern to make sure that @X1 is not replaced when searching for @X. How do I ...
    Posted to Construction Advice (Forum) by tjementum on October 17, 2006
  • Trying to flag a string containing odd/strange characters

    I've looked all over this site, and while I can find bits and pieces that may be helpful for what I'm needing, I can't find anything that covers my exact needs.  I'm hoping someone can help me with filling in the gaps. I get a ton of email on some of my accounts, sometimes it's a majority of spam.  I've been using ...
    Posted to Construction Advice (Forum) by vickishome on October 15, 2006
  • Parse a line of flat text into fields

    Hello, I need to parse a line into fields.  This should be relatively easy, but the line will also contain free text, unlabeled, which is also a field.  I am working in .Net (C# or VB works).  This is a new project so I don't have "real" data, but here are some examples:(Z) p:PField c:CField Here is some associated ...
    Posted to Construction Advice (Forum) by JacobKimbrough on October 8, 2006
  • RegEx keyword matches

    Hi, all,  I am trying to write an .xml file that determines keywords in a query that should trigger a specific event. For example, if my keywords are "electric generator", the expression to trigger my event on any query that BEGINS with these keywords even if they are possibly followed by other words is ...
    Posted to Construction Advice (Forum) by lazar on September 28, 2006