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
Showing page 1 of 5 (46 total posts)
  • 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
  • Find keyword that is not between " "

    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"  
    Posted to Construction Advice (Forum) by gt0 on July 12, 2009
  • How to valid ASPX URL?

    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, ...
    Posted to Discussion (Forum) by onming268 on June 4, 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
  • how can I find the variables in the text ? SO EASY :)

    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 ...
    Posted to Discussion (Forum) by caglar ak on March 23, 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
  • 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
  • Re: No script tag in html

    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" ...
    Posted to Discussion (Forum) by bellinux on November 16, 2008
  • How to replace multiple matched patterns with multiple patterns?

    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 ...
    Posted to Construction Advice (Forum) by princeoo7 on November 10, 2008
  • More on Filenames

    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
    Posted to Construction Advice (Forum) by Ziggy069 on November 3, 2008
1 2 3 4 5 Next >