Skip to main content
Participant
July 29, 2017
Question

Dreamweaver Beachballing with RegEx

  • July 29, 2017
  • 1 reply
  • 358 views

Using Dreamweaver CS3 (yes dinosaur!)

Application is beachballing when i try to use a Regular Expression Find and Replace.

Was working fine - then intermittent - then consistent - so it's progressively got worse over the last 24 hours.

Any suggestions as to what could be causing it?

Any Preferences settings you'd suggest i switch off/on?

running on an iMac OS 10.9.5

    This topic has been closed for replies.

    1 reply

    Participant
    July 29, 2017

    An Update on the current state of my 'testing' in case it can shed some light....

    My aim is to switch two sections of code with each other ie swap the position of two divs

    using Regular Expressions to identify the two divs - ($1 & $2)

    save a copy of each then replace themselves in the order $2 $1

    Safe Start Mac (so Dreamweaver is the only live app)

    Initiate Find & Replace

    Test 1 - using Literal Text not RegEx to identify coding

    Find Box: Copy in section of code

    Identify the two code partitions by enclosing in parenthesis.

    Replace Box: - $2 $1

    Result: This works - switching the two pieces of code with each other.

    So no problem with Saving and Replacing Code

    Test 2 - Using RegEx to identify the coding

    Find Box: Copy in section of code

    Identify the two code partitions by enclosing in parenthesis.

    convert variable portions of the coding with the RegEx: ((\s|.)*?) ie any character inc line breaks.

    Replace Box: - Literal text 'FRANK THE PLANK'

    Result: This works - identifying the RegEx coding and replacing it with Literal Text

    Test 3 - Combine 1 & 2 above - Identify coding using RegEx and Switch coding using Replace $

    Find Box: Copy in section of code

    Identify the two code partitions by enclosing in parenthesis.

    convert variable portions of the coding with the RegEx: ((\s|.)*?) ie any character inc line breaks.

    Replace Box: - $2 $1

    Result: Dreamweaver Hangs - Beachballs.

    So - though each part of the RegEx procedures work independently

    Placing RegEx commands in both the find AND Replace box causes Dreamweaver to hang.

    If anyone has any suggestions etc etc

    Nancy OShea
    Community Expert
    Community Expert
    July 29, 2017

    See Deleting Corrupted Cache in DW

    http://forums.adobe.com/thread/494811

    If that doesn't help, try Restore Preferences

    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Participant
    July 30, 2017

    Nancy - Thanks so much for the links....

    Sadly... Deleting/Rebuilding the Cache made no difference

    and it appears you can't restore preferences for CS3 - (cs4 onwards)..

    However - Further testing is making me think that possibly it's down to me. (surprise surprise)

    The hanging is very consistent - it only occurs when i'm performing a 'complex' RegEx (complex for me!)

    I'm starting to question whether the RegEx i'm using is actually valid...

    I shall post this query on a coding forum too but, in case there are any RegExers looking in

    Is there anything obviously wrong (/misunderstood by me) with the Following:

    Find:

    (<div class="graphic-wrap">((\s|.)*?)</div>)

    (<div id="scroll">((\s|.)*?)</div>)

    Replace:

    $2

    $1

    Note: If the RegEx in the Find is replaced with Literal text the Find/Replace works.