Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Regular Expression in .net

Last post 05-06-2008 5:57 AM by flower123. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-02-2008 2:54 PM

    • flower123
    • Not Ranked
    • Joined on 10-05-2007
    • India
    • New Member
    • Points 95

    Regular Expression in .net

    Hi!!

        M having Regular expression to find match of particular substring in a string...

      The ismatch ll give a boolean values only...

       I want to get those substrings

    For example if i suppose enter an ip address like

         Http://www.gmail.com

    Now i have to get the http://www. and gmail.com alone.....

      tat is i want to split both n have to get in new variables...

      Anybody knows revert me back

     

    Thanks in Advance 

     

     


     



     

    • Post Points: 10
  • 05-06-2008 1:08 AM In reply to

    • Tom-1984
    • Not Ranked
    • Joined on 08-24-2007
    • China
    • New Member
    • Points 35

    Re: Regular Expression in .net

     

    try to use the pattern:

               ^(Http://[A-Za-z0-9]+\.)([A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*[^\"\"]*$)

     hope it can help you.

    • Post Points: 10
  • 05-06-2008 5:57 AM In reply to

    • flower123
    • Not Ranked
    • Joined on 10-05-2007
    • India
    • New Member
    • Points 95

    Re: Regular Expression in .net

     Thank U Tom

    • Post Points: 5
Page 1 of 1 (3 items)