Results 1 to 2 of 2

Thread: Help needed with a Regular Expression

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2009
    Posts
    31

    Help needed with a Regular Expression

    Hi,

    I need some help to create a regular expression. It is a little like a search and replace, I want to replace any string that contains any substring in parentheses with the same string but the words in parentheses colored RED.

    Eg

    Take this text in TextBox1:

    "The Prime Minister (that idiot from Scotland) made a speech today"

    and convert to this text in RichTextBox1:

    "The Prime Minister (that idiot from Scotland) made a speech today"

    TIA

    Rock
    Last edited by Rock_Vacirca; Feb 12th, 2009 at 09:47 AM.

  2. #2
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,950

    Re: Help needed with a Regular Expression

    You dont actually need a Regex for this, see the code from VBDT in this thread...

    http://www.vbforums.com/showthread.php?t=483538

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width