#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    11
    Rep Power
    0

    Problem with equal sign in DW regex


    Hello,

    The regex below works on the gsskinner site but in Dreamweaver it does not. If I remove the 'id' attribute information including the equal sign, it works but obviously I get a bunch of divs I do not want. Any help would be appreciated.

    <div id="page_content_top_stage\b[^>]*>(.*?)</div>

    <div id\b[^>]*>(.*?)</div> THIS WORKS, BUT NOT WHAT I NEED.
  2. #2
  3. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,302
    Rep Power
    9400
    Equals signs don't mean anything special in regular expressions.

    What's the original string you're trying to match against?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    11
    Rep Power
    0
    Originally Posted by requinix
    Equals signs don't mean anything special in regular expressions.

    What's the original string you're trying to match against?
    <div id="page_content_top_stage"> <br>
    <!-- InstanceBeginEditable name="content up" -->
    <div align="left" class="body_one">
    <p class="body_one"> This could be anything. Would nested tags create a problem? (or parens)</p>
    <p class="body_one">This could be any text</p>
    </div>
    <!-- InstanceEndEditable --> </div>

IMN logo majestic logo threadwatch logo seochat tools logo