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

Browse by Tags

All Tags » exclude
Showing page 1 of 2 (13 total posts)
  • match URLs that are not from given domain

    Hi, again. I am working in a website, using PHP (in Wordpress, if that matters). I am using preg_replace to add target="_blank" on the fly to all external links in my site. This means that I need a regex to match only the links that do not contain my domain. For example: Source [1]: <a ...
    Posted to Construction Advice (Forum) by daniel3ub on March 6, 2011
  • Need Basic Clarification

    I am currently working on minimizing JavaScript that someone else made and came across this variable that made me go "hmmmm": var x  =  /^[\w\.]+[^:]*$/; This is being used to check a returned string from a browser version inquiry. It appears to me to be looking for [a-zA-Z0-9] and . (period) one or more times. It then wants ...
    Posted to Construction Advice (Forum) by maxroom on August 3, 2010
  • Exclude string in expression

    I'm a newbee and hope someone will take pity on me.  In Visual Studio 2008, I need to find all line that have the whole word FROM and does NOT contain the string (WITH (NOLOCK)).  I'd settle for it not containing the work WITH.  All words are case insensitive. Select * FROM tblRequests Select * from tblRequests WITH ...
    Posted to Construction Advice (Forum) by rboehm00 on February 25, 2010
  • exclude strings ending with 0000

    I have to evaluate many 20 character strings.  How would I only allow a match for strings that do not end with four or more zeros? Basic alphanumeric strings.   Case doesn't matter.   Given the following ...
    Posted to Construction Advice (Forum) by exitstageleft on August 27, 2009
  • Capitalizing firs letter of word exept "and" string ( for Country Names )

    Hello, I'm using php preg_replace_callback to add a capitalized letter to country name, excluding the "and" string, so ie wallis and futuna will become Wallis and Futuna. It works ok, except for the country andora. for instance if you are going there ( online regular expression tool ) and copy this ...
    Posted to Construction Advice (Forum) by zeflasher on July 14, 2009
  • Expression to exclude two Strings

    This seems like it wouldn't be too difficult, but I am having lots of problems. I am using ASP.NET I have a form with a list of states using their two letter abbreviation. I have a regular expression validator and I would like for it to fail if the person chooses ME or WV from the list. I have have tried several expressions in Expresso and ...
    Posted to Construction Advice (Forum) by jennifer on August 21, 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
  • Seemingly Really Obvious Expression That Eludes Me

    I am trying to match all instances of LINES but not GRIDLINES. Sounds easy right?  Well apparently I'm too green to get it.  I have "Teach Yourself Regular Expressions in 10 Minutes" and was able to digest it, I have a Firefox addin named 'Regular Expressions Tester' and an app named 'Expresso' which are ...
    Posted to Construction Advice (Forum) by cleanden on March 26, 2008
  • Need your help (POSIX C)

    Dear all,I have a question need your help (POSIX regex). the question is shown as following.There are several specified realms, and now there is a user which name likes, we should check if the realm of the use was not included in those realms. Example: The realms includes,,, ...
    Posted to Construction Advice (Forum) by arebing on January 28, 2008
  • Re: Match text between two words

    Ok, real data (but sorry, cannot give you real person names). I will use TRegExpr for Delphi to process old ascii files with person names (code 720, plus name) optionally followed by the profession (code 100, plus profession name). ...| 720 | John Doe | 720 | Winston Smith | 720 | Peter Parker | 100 | Journalist | 720 | Humpty Dumpty | 720 | ...
    Posted to Construction Advice (Forum) by oskhar on December 10, 2007
1 2 Next >