|
|
Browse by Tags
All Tags » C# strings
Showing page 1 of 2 (15 total posts)
-
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 "_". ...
-
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, ...
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
<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 ...
-
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 ...
-
It works! Thanks a ton. All I missed was the asterisk :-)
-
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
1
|
|
|