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 4 (34 total posts)
  • Breaking text into parts at keywords

    Dear colleagues, I like to parse a text and split it at specific keywords (e.g. k1 or k2). I'll use it in a .NET application like MatchCollection matches = Regex.Matches (sSrc, sRegEx); but for testing I am using RadSoftware Regex-Designer. My sSrc is something like: "k1 blakblak\r\nblakblak k2 blablabla k1 data3 k2 ...
    Posted to Construction Advice (Forum) by Thomas_ on August 27, 2008
  • How to get the value from in between tags?

    Hi Guys, I am just new to Regular Expressions. I am having problem pulling out the string value between tags. How can I get the text "Your Payment:" and "300.00"? I am using ASP.Net 2.0 and I haven't tried using the regex before. What is the correct pattern to apply here? Thanks   Sample ...
    Posted to Discussion (Forum) by hifiger2004 on June 4, 2008
  • regex allowing only number and coma

    Hi, Can anybody helpme to create a regex that allow number and coma in between also we must allow only 10 comas in btween the nubmers.. ie. it wil be like 95,5,65,8,.... upto 10 numbers i can enter with coma seperated.. is it possible for that...???
    Posted to Construction Advice (Forum) by sajith on May 25, 2008
  • Daterange Regex Help needed

    Hello Everyone. I am working on a .NET 3.5 project that needs a regex for date range.  I have tried using Expresso and have searched http://regexlib.com/ but have come up empty handed. the regex needs to be able to accept the following input (yyyy - yyyy) AND (yyyy) can can not accept years earlier than 1900 or later than 3000 (needs ...
    Posted to Construction Advice (Forum) by rockinthesixstring on May 19, 2008
  • Using the regexlib web service

    Has anybody used the regexlib web service. I plan to use it in my .net winform application and am quite clueless abt it. I have written the fllowing code (c#) by trial and error             com.regexlib.Webservices regexService = new ...
    Posted to Discussion (Forum) by midhatali on April 8, 2008
  • Need regex to omit <followedby> or white spaces

    I am looking for a regular expression which should match the following criteria 1. Input string should not contain <followed by> 2. Input string should not contain white spaces. Below are the examples for which regex should return true/false (Regex.IsMatch(inputString)) some<testhaspattern>thing - false s&*<te*&#df> - ...
    Posted to Discussion (Forum) by bvsuresh_reddy on April 1, 2008
  • Reg Expression

    Hi, I am in need for Regular Expression pattern that could help me parse what I would call tokens. Currently, I am parsing a string character by character and using a scanner approach (Sort of how compiler works). However, I would think a RegExp would perform better.  Here is the scenario: Everything that is used within a “()” ...
    Posted to Construction Advice (Forum) by Bassam Al-Saidi on March 27, 2008
  • Need a regular expression for validating email which should exclude /|\;,<> and spaces

    Hi I need a regular expression for email validation, it should excldue the email addresses with the following special characters.  \|/,;<> and spaces. The rule for validating the email is : Email address must contain a single @, one or more periods, and any standard characters with the exception of spaces and the ...
    Posted to Construction Advice (Forum) by bvsuresh_reddy on March 19, 2008
  • Find username but not share name

    I new to regex, using PowerShell (.Net). I try to match strings underlined below in the form of domainname\username: something domain\user something something (domain\user) something domain\user something something domain\user. But do not find: something \\server\share something something \\server\share\subfolder something Thanks! Tibor
    Posted to Construction Advice (Forum) by soostibi on March 19, 2008
  • VB.NET RegEx.Replace replacing the matched characters + 1

    I have the follwing code in VB.NET: Dim strPhone As String = oRow("phone").ToString.ToLower  ' data is like 123-555-0000X81455  If Regex.IsMatch(strPhone.ToLower, "ext.|ext|ex.|ex|x.|x") Then  strPhone = Regex.Replace(strPhone.ToLower, "ext.|ext|ex.|ex|x.|x", "A") End IfIt ...
    Posted to Construction Advice (Forum) by unclebiguns on March 6, 2008
1 2 3 4 Next >