Regular Expression in .net

asp.net Hong Kong SAR
  • 12 years ago

    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 

     

     


     



     

  • 12 years ago

     

    try to use the pattern:

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

     hope it can help you.

  • 12 years ago

     Thank U Tom

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Brevity is the soul of wit” - Shakespeare