Search and Replace using Regex

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramkumar1910
    New Member
    • Jan 2007
    • 2

    #1

    Search and Replace using Regex

    Experts,
    I am trying to do serch and replace using regex, my problem is the search is a chunk of html enclosed in a div tag. and the contents are dynamic.

    Ex--

    <div>
    <table></table>
    </div>

    can anyone help me with a expression string to do this. thanks
  • enreil
    New Member
    • Jan 2007
    • 86

    #2
    Let me just say this - I love regular expressions! You can do so much with them.

    There, now that I have that out of the way, I recommend two very helpful websites:

    Regex Tutorial
    Regex Tester

    The first site provides valuable information about how to use Regexes, and the second has a handy way to test them out before you run them in your code.

    Keep in mind that linebreaks in Windows are represented by \r\n

    Originally posted by ramkumar1910
    Experts,
    I am trying to do serch and replace using regex, my problem is the search is a chunk of html enclosed in a div tag. and the contents are dynamic.

    Ex--

    <div>
    <table></table>
    </div>

    can anyone help me with a expression string to do this. thanks

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      Nice work enreil, keep up the good work :).

      Comment

      • enreil
        New Member
        • Jan 2007
        • 86

        #4
        Thank you!

        Originally posted by kenobewan
        Nice work enreil, keep up the good work :).

        Comment

        • ramkumar1910
          New Member
          • Jan 2007
          • 2

          #5
          Thanks! That helps

          Comment

          Working...