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 regexp syntax
Showing page 1 of 2 (17 total posts)
  • Match all URL except an expression (resolved :-))

    Hi, Objective : match all URL except http://test/admin(.*) and http://test/login.aspx Test case : 1. http://test/admin 2. http://test/admin/ 3. http://test/admin_client/ 4. http://test/admin/login.aspx 5. http://test/login.aspx 6. http://test/toto.aspx 7. http://test/titi/tata.aspx Expected result : only 6 and 7 URL must ...
    Posted to Construction Advice (Forum) by thomine on July 22, 2010
  • Numeric regular expression for leading zeros

    I need a regular expression that will take only 6 numbers from an end of a string and it has to be a regular expression.  Basically we have a field that has leading zeros ex.  0000000123456 and I need to get the last 6 numeric digits.  The last 6 digits can also contain a zero so cant filter out the zeros altogether.
    Posted to Construction Advice (Forum) by splotch69 on June 6, 2010
  • find only filenames that start with e.g. 12345_

    Hi all, I have some problem with Regular Expressions and .NET (C#) I like to find specific filenames and then remove the prefix. Therefore I have two regular expressions. One for finding only the correct files and the other one for the replacment. I like to find only files, that start with exactly 5 digits [1-9] followed by a "_". ...
    Posted to Construction Advice (Forum) by Tommy on January 10, 2010
  • RegEx for parsing ID values out of .aspx lines

    I have a need within an ASP.NET C# application to go through the .aspx files of my solution and pull out the IDs of certain controls within the forms.  I already have code in place to bring back all the files and stream each file line by line. I want to use RegEx for two purposes.  1) To determine if the line contains any of ...
    Posted to Construction Advice (Forum) by dwadek on December 17, 2009
  • Validate numbers n digits and 2 decimal places not allowing zero.

    Good day. I found this regex: ^\d{1,5}(\.\d{1,2})?$  from Paul Ashton very helpful to validate numbers 5 digits and 2 decimal places. What else need to be added, so zero is not allowed? Matches: 12345.67 | 1 | 10.3 Non Matches: 0 | 1234567.6777 | .2 Thanks.
    Posted to Construction Advice (Forum) by FabianHG on September 4, 2009
  • Numbering by a 5 year old

    Hi Im am writing a function in SQL Server 2005 using a simple C# assembly that implements C# regex functions. I found the assembly on codeproject. The data I am trying to modify contains numbering, that was entered by a 5 year old probably.  Here is 5 of the problem data on the LEFT and data I need to return on the RIGHT The word ...
    Posted to Construction Advice (Forum) by HeavenBurns on June 10, 2009
  • Search in a string until the occurrence of a particular string.

     Hi all, I amtrying to create an email parser in C#. I want to extract mail body from the entire raw email string. To separate message footer from message body, I inserted a GUID string in between them. So a sample email may like ...
    Posted to Construction Advice (Forum) by thomas_joyeee on April 22, 2009
  • Search and trim the result with a single regular expression

    Hi all, Please help to me to solve my problem. I want to search inthe following string. “Your user id is U101 and password is P101” I want to capture 101 following the letter ‘U’. I can get itusing the regular expression “U(\d)+”. But the result is carrying the letter‘U’. I can’t ...
    Posted to Construction Advice (Forum) by thomas_joyeee on April 2, 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
  • Password Validation Pattern

    Hello, I need help! I got this password validation expression (?=.{6,})(?=(.*\d){1,})(?=(.*\W){1,}) and should add additional "rule". The rules in this expression are: the pwd has to be at least 6 chars long, contain at least one digit and contain at least one special character. The "rule" or expression I should add, should ...
    Posted to Construction Advice (Forum) by wesen on January 15, 2009
1 2 Next >