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

Browse by Tags

All Tags » .NET » regex
  • Need regex to omit <followedby> or white spaces

    I am looking for a regular expression which should match the following criteria 1. Input string should not contain <followed by> 2. Input string should not contain white spaces. Below are the examples for which regex should return true/false (Regex.IsMatch(inputString)) some<testhaspattern>thing - false s&*<te*&#df> - ...
    Posted to Discussion (Forum) by bvsuresh_reddy on April 1, 2008
  • Need a regular expression for validating email which should exclude /|\;,<> and spaces

    Hi I need a regular expression for email validation, it should excldue the email addresses with the following special characters.  \|/,;<> and spaces. The rule for validating the email is : Email address must contain a single @, one or more periods, and any standard characters with the exception of spaces and the ...
    Posted to Construction Advice (Forum) by bvsuresh_reddy on March 19, 2008
  • Numeric Validation

    HI I am new to regular expressions BUT I am trying to create a regex that will validate numeric input where the number can be zero (0), positive (123), negative (-123), a decimal positive(123.123), a decimal negative (-123.123) but the decimal could be up to 8 places (123.12345678)  There are lots of examples that do part of what I ...
    Posted to Discussion (Forum) by jamesgileslang on January 28, 2008
  • .NET VB New Sub Replace Help? Not Quite Right

    Hi Guys,  I am trying to generate some dynamic code. and need to replace the Public Sub New in vb.net Multiline and Case ignore is on and i am using .net regex engine. (PUBLIC|PRIVATE)\s+(SUB)\s+NEW([.\n]*|(END\s+SUB|END\s+FUNCTION)) I Needs To Match Public Sub New()      *(With Or Without Brackets) - (Can be ...
    Posted to Discussion (Forum) by Beachnerd on January 28, 2008
  • How to accept certain symbols and reject others

    I'm trying to create a regex that has the following requirements: 1. must be at least 7 characters in length 2. must contain at least 1 digit 3. must contain at least 1 lowercase letter 4. must contain at least 1 uppercase letter 5. must contain at least one of the following symbols: = ! $ % ^ & + 6. It must reject any word that ...
    Posted to Construction Advice (Forum) by RobertH on November 13, 2007
  • Complex Name Matching Assistance

    I wrote a VB.NET application that parses airline passenger data using Regular Expressions.  The passenger's last name appears first followed by a slash.  There can be many different data items after that.  In the airline data, the passenger name format is: [] = optional -[Number]Last Name/First Name/Initial [Middle ...
    Posted to Construction Advice (Forum) by brianbos on November 6, 2007
  • Regex to stop users inputting html

    Hi all regex experts I need a Vb.net regex that excludes any text with html in it. I'm trying to create a text box with a regular expression validator which will not accept text with html in it such as <b>Bold</>.  I'm working with/in ASP.Net 2.0  For this input "<b>Bold</>" should generate an ...
    Posted to Construction Advice (Forum) by geoffreymh on September 20, 2007
  • Help with new line

    hey all i am trying to get the input tags that their type=text from a source code of a page. i was using this ...
    Posted to Construction Advice (Forum) by rare_air on August 9, 2007
  • Can't figure it out...

    Hi there, I hope someone can help, cause I'm lost... First of all I am working with C# and I have a (legacy) Regex I need to adjust. Actually I am using Regex.Replace to match an expression in a string and Replace it. My current Regex.Replace looks like this: query = Regex.Replace(query, ...
    Posted to Construction Advice (Forum) by mischa78 on June 28, 2007
  • RegEx Help - Replacing hrefs

    OK. Stick with me here. It is going to take me a few to explain this. I am writing a small application in VB.NET. The ultimate task is to make a web browser, within a web browser. Basically, You open IE, FireFox, Safari, or whatever browser you like and go to the web application I am building. At the top of the web page, I have a tool bar, ...
    Posted to Construction Advice (Forum) by TampaWebDevelopment on June 27, 2007