Dreamweaver.setupcomplexfindreplace() – Adobe Dreamweaver API Reference CS5 User Manual
Page 452

447
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
Note: In a query, certain special characters, such as the backslash character (\), must be escaped. Therefore, to use a
backslash in a query, you must write \\.
Returns
Nothing.
Example
The first line of the following example sets up a tag search and specifies that the scope of the search should be the
current document. The second line performs the search operation.
dreamweaver.setUpComplexFind(' ignorewhitespace="true" useregexp="false"/>
dw.findNext();
dreamweaver.setUpComplexFindReplace()
Availability
Dreamweaver 3.
Description
Prepares for an advanced text or tag search by loading the specified XML query.
Arguments
xmlQueryString
•
The xmlQueryString argument is a string of XML code that begins with the
dwquery
tag and ends with the
/dwquery
tag. (To get a string of the proper format, set up the query in the Find dialog box, click the Save Query
button, open the query file in a text editor, and copy everything from the beginning of the
dwquery
tag to the end
of the
/dwquery
tag.)
Note: In a query, certain special characters, such as the backslash character (\), must be escaped. Therefore, to use a
backslash in a query, you must write \\.
Returns
Nothing.
Example
The first statement in the following example sets up a tag search and specifies that the scope of the search should be
four files. The second statement performs the search and replace operation.
dreamweaver.setUpComplexFindReplace(' matchcase="false" ignorewhitespace="true" useregexp="false"/>¬
fontWeight='normal'"/>
dw.replaceAll();