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

Browse by Tags

All Tags » C# strings
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
  • Comparing filenames containing digits

    Hi, Assume you have the following files: bktrans.999 bktrans01.999 bktrans02.999 bktrans03.999  I would like C#'s Regex.IsMatch to return true when bktrans.999 or any bktrans##.999 variation is matched. I came up with the following but I was hoping it could be simplified further:  (bktrans.999)|(bktrans[0-9][0-9].999) Also, ...
    Posted to Construction Advice (Forum) by lenardd on July 9, 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
  • Matching a limited character set with rules

    I'm in need for a regular expression that will match a limited character set that has rules.  The rules are: 3 to 15 character long (inclusive) e.g. "abc" "abcdefghijklmno" Only characters A-Z 0-9 - _ . ( ) [ ] e.g. thats A-Z 0-9, dash, underscore, period, left & right round bracket, and left & right ...
    Posted to Construction Advice (Forum) by kyro555 on December 3, 2008
  • need help for find and replace regular expression

    hi,  Input : 1,This,is,test,data,100,+66,22+12,567,..,+34 Output: 1,This is test data,100,+66,22, +12,567,..,+34I'm trying to use the regular expression in C# to replace the above Input string to get the above given output string. Basically i'm trying to do the followings 1. if any comma (,) is there between two alphabets that ...
    Posted to Construction Advice (Forum) by rkn on July 2, 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
  • parsin html by using regex in c#

    <meta name="keywords" content="IBM 7976KAG SYSTEM X3400 QC 1.60GHZ 2GB 3X73,sunucular, server, markalı sunucular, markalı server, hp sunucular, hp, ibm, ibm sunucular, ibm server, century server, century sunucular"> <meta name="description" content="Fiyat:1879$+KDV | Kdv Dahil:2.877,95YTL | Havale ile %3 ...
    Posted to Construction Advice (Forum) by caglar26 on April 27, 2008
  • table parsing

    hi every one .. I want to parse product name , price  from source kod of web site by using C#.   Example in that code I want to take  PANASONIC BB-HCM515CE CCD MEGAPIKSEL POE VIDEO, 838,8 € + KDV,2.081,52 YTL,Havaleye %3 İndirim: with 2.019,07 YTL. But that code is not just between the ...
    Posted to Construction Advice (Forum) by caglar26 on April 23, 2008
  • Re: RegEx which checks for specific chars

    It works! Thanks a ton. All I missed was the asterisk :-)  
    Posted to Construction Advice (Forum) by kvin09 on April 7, 2008
  • RegEx which checks for specific chars

    Hi,  How can I build a RegEx which has following constraints?   my input string can either be empty or it can contain any combination of N, C, M, Y, 0 , /     ie if my input string is not empty then it should contain only these chars.  examples of valid input: NNCC, CCNN, MM/YYYY etc Thanks in advance, kvin 
    Posted to Construction Advice (Forum) by kvin09 on April 7, 2008
1 2 Next >