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

Browse by Tags

All Tags » asp.net
Showing page 1 of 8 (80 total posts)
  • Help validate directory path

    I need help creating a regular expression for a user input on an asp.net page with c# code behind. I have a textbox where a user can enter a directory path; which i then use to save certain files at. they can enter a local directory, a directory on network, server or an ftp site. so for example these are valid ...
    Posted to Construction Advice (Forum) by imranmp on February 25, 2010
  • Bypass a spl. charater in the post fix of domain address

    Hi, I want to build a reg ex so that the email address xyz@its.j&j.com can pass through the validation, in the asp.net regular expression. I got one expression from from regexlib, ^[\w-\.]+@([\w-]+\.)+([\w-]){2,4}$ But cannot find the correct one so that it will work. Let me know if any one has a soultion...
    Posted to Construction Advice (Forum) by zikwag on July 18, 2009
  • Help me in writing regular expression

    I have a requirement where I have to fetch prefix in a text excluding right hand side digit pattern. For ex: AB9T0005 should give me only AB9T AB9T-K1A-0005 should give me only AB9T-K1A- What I mean is prefix may include any input including numbers and other alpha numeric values. With out using regular expression I will parse from right ...
    Posted to Construction Advice (Forum) by chambarish on June 17, 2009
  • Regex for string not having \ / and .(dot) and length must be 60

    Hi, I need a help on creating regular expression for string length must be 60 and it should not contain \ / and .(dot) I have two regular expressions for validating separately for above condtion. I need it in single expression. Expression are   [^\\/\.]+$    for checking \ / .(dot)^.{60,60}$    for fixed ...
    Posted to Construction Advice (Forum) by bussureddy82 on June 3, 2009
  • multiline ASP TextBox

    I’m testing a regular expression for use with an ASP TextBox that is set for multiline mode. The requirement is to allow up to 10 tracking numbers, one per line.  Each number must be 22 digits.  Following are a few attempts. Expression #1…. ^\d{22}(\r\n)?$    …accepts 22 digits on 1 line with optional ...
    Posted to Construction Advice (Forum) by macsic on May 6, 2009
  • Regex to find and replace string in URL

    Hi all, I'm attempting to create a custom regex expression in ASP.Net and could use a little help. I need to create a Regex to rewrite the URL’s in the /profiles/ section of my WorkoutBOX the site.   Here are some examples of what I need done: Rewrite ...
    Posted to Construction Advice (Forum) by SimonTurner on April 16, 2009
  • Regular Expression for Password

    Hi All I need a help on creating regular expression for strong password. conditions are At least 1 numeric At least one small letterAt least one capital letter Special character may or may not existlength should be minimum 8 charsany order of characters in passwordAllowed special characters are @\$=!:.#%I have one Expression i.e ...
    Posted to Construction Advice (Forum) by bussureddy82 on January 27, 2009
  • Any idea as to why Negative Lookahead Expression (?!ITEM CODE NOT FOUND) doesn't work?

    I am writing an application in .NET and using a RegularExpressionValidator with a negative lookahead expression of (?!ITEM CODE NOT FOUND) with the understanding that validation should pass when the value in the control being validated does NOT match the text ITEM CODE NOT FOUND.  Basically, this value is returned from a web ...
    Posted to Construction Advice (Forum) by Darth McAdam on January 13, 2009
  • if exactly 10 numbers in string then OK else Not OK

    I have made a regex to check the build-up of a number and it works fine. The only condition I can't make is:  if exactly 10 numbers in string then OK else Not OK So OK: 1234567980 and 123456a7890 and a1a2a3a4a5a6a7a8a9a0a      etc.. Not OK 132456798 and 13456a789 and a1a2a3a4a5a6a7a8a9a etc Any1 Any Idea?
    Posted to Construction Advice (Forum) by wineton on November 25, 2008
  • Tooltip word replacement

    Hi I'm currently working on a ASP.NET project where i want to replace sertain words with a link ex. "all your base are belong to us, is a cool phrase" if I want to replace the letter a as in "a cool phrase" with <a href="/#mylink">a</a> i want the new string to look like this, "all your base ...
    Posted to Construction Advice (Forum) by gralov on November 14, 2008
1 2 3 4 5 Next > ... Last ยป