Activity Stream
48,167 MEMBERS
61028 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Member

    Question Regular Expressions in VB.NET 2005 ?

    'Define regex
    Dim regExp As RegularExpressions.Regex

    'Italic text
    regExp = New RegularExpressions.Regex("<i>$1</i>")
    RichTextBox2.Text = regExp.Replace(RichTextBox1.Text, "\[i\](.+?)\[\/i\]")

    Input should be: <i>blahblah</i> and output blahblah, but it gives me same text from richtextbox1 in richtextbox2. Anyone can see whats wrong in this code ?
    Cojba Reviewed by Cojba on . Regular Expressions in VB.NET 2005 ? 'Define regex Dim regExp As RegularExpressions.Regex 'Italic text regExp = New RegularExpressions.Regex("<i>$1</i>") RichTextBox2.Text = regExp.Replace(RichTextBox1.Text, "\(.+?)\") Input should be: <i>blahblah</i> and output blahblah, but it gives me same text from richtextbox1 in richtextbox2. Anyone can see whats wrong in this code ? :S Rating: 5
    HQLessons.Net + HQLessons.Com + 8months of HQ shared hosting - 30$
    Selling two themaPosters for 25$ or 15$ for each. Payza(AP) only. Contact me :)

    Respected and trusted members: wf?9, Jimmy, ramicn, Matijasevic, rkze1
    Cheap desktop apps development. Contact via pm or msn.

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    google.com
    i done in C#

  4.     
    #3
    Banned
    Website's:
    TehHost.net
    System.Text.RegularExpressions.Regex("<i>$1</i>")

  5.     
    #4
    Banned
    Website's:
    google.com
    this is for C#


    if(!regex((^[1-9]{2}-[0-9]{3}-[0-9]{7}$).Success)) )
    {
    MessageBox.Show("Invalid phobe Number");
    }

    this some like validating
    +92-61-4561239

  6.     
    #5
    Banned
    lol VB.NET 05 doesn't have native regex support

  7.     
    #6
    Member
    System.Text.RegularExpressions.Regex("<i>$1</i>")
    still not working...

    lol VB.NET 05 doesn't have native regex support
    is this true ? which one does ?
    HQLessons.Net + HQLessons.Com + 8months of HQ shared hosting - 30$
    Selling two themaPosters for 25$ or 15$ for each. Payza(AP) only. Contact me :)

    Respected and trusted members: wf?9, Jimmy, ramicn, Matijasevic, rkze1
    Cheap desktop apps development. Contact via pm or msn.

  8.     
    #7
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    you shoud never ever use regex to parse html. the best and fastest way to parse strings is using IndexOf. There is a HTML agility pack that allows you to use xPath.

  9.     
    #8
    Member
    tnx jayfella... lets try your way
    HQLessons.Net + HQLessons.Com + 8months of HQ shared hosting - 30$
    Selling two themaPosters for 25$ or 15$ for each. Payza(AP) only. Contact me :)

    Respected and trusted members: wf?9, Jimmy, ramicn, Matijasevic, rkze1
    Cheap desktop apps development. Contact via pm or msn.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HostWired: Offering Shared Hosting since 2005 (USA)
    By WebmasterPost.com in forum Shared Hosting Offers
    Replies: 1
    Last Post: 26th Oct 2012, 09:12 AM
  2. For 15 Days: 20% Lifetime Off Hosting & Free Site Move, Since 2005
    By WebmasterPost.com in forum Shared Hosting Offers
    Replies: 0
    Last Post: 25th Sep 2012, 04:50 PM
  3. Since 2005, mastiland.com
    By Vansh in forum Site Reviews
    Replies: 7
    Last Post: 13th Mar 2011, 09:55 AM
  4. Replies: 0
    Last Post: 13th Apr 2010, 05:27 PM

Tags for this Thread

BE SOCIAL