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 (15 total posts)
  • 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
  • Help searching and replacing a string

    Hello, i need a pattern for searching a word, which must have at the left or right a space or a ",". When found, then replace with something else.... Searchphrase: customer Bad case: - new\customer\test - customertest Good case: - select customer.title - select test,customer from - select test,customer.title from - select ...
    Posted to Construction Advice (Forum) by max52 on December 11, 2008
  • 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
1 2 Next >