|
|
Browse by Tags
All Tags » .NET regexp syntax
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 "_". ...
-
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 ...
-
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.
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
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?
1
|
|
|