|
|
Browse by Tags
All Tags » .net
Showing page 1 of 5 (46 total posts)
-
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 ...
-
Hi this is an example of a string I will be using.
Event "test"
It could also possibly be
Static Event "test"
or
Static Event "event"
It should find the event keyword. The below shouldn't work.
testing "event"
-
Hi all,I’m junior developer, so I ‘m not yet pick up Regular Expressions (>o<).In current situation, I want to check SharePoint URL is valid or not, and my simple coding as follows:if (strTargetASPX.Substring(0, 4).ToLower().Equals("http") && strTargetASPX.Substring(strTargetASPX.Length - 4, ...
-
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 ...
-
I have a text file. I want to find the words in it.
Eg:
my word is ="find"
my text is ="web word finder"
I want 2 variable. 1st one is the root =>" find"
2nd one is the "er"
pls help ...
-
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 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?
-
If I use.NET and my regex and yours works
<script [^>] *> [\w|\t|\r|\W] *? </script>
<script [^>] *> ([\w\W] *?) </script>
For example we have the it paginates following web:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...
-
Hi,
Let me explain the scenerio: I have the input text "Mr. XYZ is a very nice person and have a very good taste of humor"
I want to write one replace string and once pattern string such that I can do the following things:
er -> gh
av -> th
these are two papperts that I can match with the pattern string ...
-
I am using VB.Net and I need to capture the file name without the
extension and I need to exclude any underscores that are found.
Input Examples:
Any_Text_Here_1007.pdf
Any_Other_Text_Here_2008.jpeg
Results:
Any Text Here 1007
Any Other Text Here 2008
1
|
|
|