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

Browse by Tags

All Tags » matching
  • Validating that a string contains only single instances of certain characters in any order

    I'm working in C# and need to validate an input string.  Valid strings can contain 0 to 1 instances of the following characters - T, R, B, and/or L and can contain no other characters.  The characters can appear in any order in the string.  None or all of the characters can be present (the string can be empty or have up to 4 ...
    Posted to Construction Advice (Forum) by Gawiz on February 26, 2011
  • Find all URLs to shorten for Twitter

    I am using the Shorten URL in a text using Bit.ly PHP class by Muhammad Arfeen and I would like to replace his code with Philippe Leybaert's code. The original PHP code is below: preg_match_all(’(((f|ht){1}(tp://|tps://))[-a-zA-Z0-9@:%_+.~#?&//=]+)’, $text, $hyperlinksArray); Here is the same code with Philippe ...
    Posted to Construction Advice (Forum) by thripp on September 4, 2010
  • Parse a URL after .asp?

    I'm new to regex so please forgive if the solution is really simple. I need a plain expression that matches or extracts (not sure if I'm using the correct terminology) a string of 8 digits from the end of a URL. I need to insert the expression into an off-the shelf software application that will compile various types of lists for ...
    Posted to Construction Advice (Forum) by quioui on May 4, 2010
  • Please help! Matching all or part of a literal term

    Hi, folks. I've been banging my head against this for a few days now, and have now run out of ideas. I'm new to this RegEx business, so I'm hoping I'm just missing a basic concept somewhere.  I am working on a project in which I need to match a series of commands recorded in a log file against a supplied list of commands that ...
    Posted to Construction Advice (Forum) by mcbenson on March 31, 2010
  • noobe question on text extraction

    hi there I am wanting to extract sku code from image url that has two patterns. In the first case the image url ending pattern is as follows /images/uploads/19113604-5.jpg /images/uploads/19113604-4.jpg /images/uploads/19113604-3.jpg  and I use regex (?<=\buploads/)(\w+) $1 this results in 19113604 which is what I want. ...
    Posted to Construction Advice (Forum) by uzi on March 14, 2010
  • REG_BADRPT when i'm trying to test a regex with ereg (POSIX)

    Hello everyone, I'm pretty new to regexes and I've got a small problem. I have the following regex: (?<=lblVacant">(ab )?)([\d,.\/]+)(?=(<\/span>|\s\-)) which should match ose1_DetailEstateData1_lblVacant">06.08.2009 - 30.10.2009</span></td> ailEstateData1_lblVacant">10.08.2009 - ...
    Posted to Construction Advice (Forum) by Olty on August 6, 2009
  • Replacing text with matched text from same string

    Hello, I need help on matching and replacing text with different matched text from same string. My goal is to be able to batch process a large set of text files that each have similar patterns and replacement criteria. Below is an example of a typical case. In the example below, BOLD text replaces strikeout text: TITLE: Beautiful Losers - ...
    Posted to Construction Advice (Forum) by dhl on August 15, 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
  • 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
  • Matching persons names

    Hello,   Could you please help me with creating a regex to match good person name? Good person name is: Adam Mickiewicz Bad person names are: Adam Mickiewicz! Adam! Mickiewicz Adam Mickiewi-cz Adam Adam/ Adam\ ADAM MICKIEWICZ Adam MiCkiewicz Adam Mick,iewicz Adam Mickiewicz, Adam Mic!kiewicz adam Mickiewicz   I tried to do ...
    Posted to Construction Advice (Forum) by bear007 on May 6, 2008