Quick Search & Replace  

Download Setup Files

   Click Here to Download

File Size:  580 KB  | Estimated Download Time: 30 Seconds - 90 seconds | for Wndows XP and Vista | License: Freeware

 

 

 

 

 








How to Use

Find Tab
You can search for files within the specified Path. You should also specify mask or several Masks and a query.
The following types of queries may be used:

Phrase
    Examples:
    Quick Search & Replace
    Page 1

Words: or
Specify one or few words separated by spaces. The search will return all files that contain at least one of  these words.
    Examples:
    Computer Windows Vistai
    1 2 3 10 20 30

Words: and
The file will be found if it contains all the specified words.


Search Engine
The query syntax is similar to that of the Internet search engines. A query can contain several phrases and words divided by spaces. Below is the list of the search commands:

+
AND. Narrows the search by retrieving only those files that contain all words and phrases with the '+' prefix. (Examples: +"for i" +k j, +do 100)

-
NOT. Narrows the search by retrieving only those files that contain not words and phrase with the '-' prefix. (Examples: true -not, 1 -2 -3)

""
Exact match. Finds the files that contain the exact expression placed between the quotation marks. (Example: "1 2")

If you do not use any of these commands the search will return all files that contain at least one word from the query.

Multiline
Specify in the query one or several lines.

Reg Expr
You can specify Case Sensitive for all types of search, Whole Words for all types except the Multiline search, and the Ignore Leading Spaces and Ignore Trailing Spaces options for the Multiline type only. Use several Options and Settings to further restrict your search.

See information about the found files in the List and in the Lines Viewer.

Search and Replace Tab
You can use Phrase, Multiline (one or several adjacent lines of the document), or Reg Expr (Regular Expression) to search files, and one of the following modification types: Replace, Insert Before, Insert After, Delete, or Clear (replace by spaces). The Clear option won't work with Reg Expr. If the type is None the files won't be modified.

Modify files in two steps:
Step 1. Specify the Path and Masks, then enter the search phrase, multiline or regular expression into the To Search field. Click the Search button to find files.
Step 2. Select the files you want to modify by clicking their names (hold Ctrl or Shift to select more than one file) and click the Modify Selected button or click the Modify All button to modify all files displayed in the List.

Use the Case Sensitive option for Phrase, Multiline, and Regular Expressions; Whole Words - for Phrase; Ignore Leading Spaces and Ignore Trailing Spaces - for Multiline; "." Matches Line Separators Too, Ignore Whitespaces in Reg Expr and Search within Each Single Line - for Regular Expressions.

Use several Options to restrict the search and replacement.

If the Reg Expr option is ON, you can use the back references in the To Replace or Insert expressions

Examples:
 
1. Specified:
         Phrase
         Modify type:  Replace
         To Search: stack
         To Replace or Insert: Utility
         Case Sensitive: OFF
         Whole Words: OFF
   
    Action:
         Line in a file before modification: <SCRIPT SRC = "Stack.js" LANGUAGE =
         Line in a file after modification: <SCRIPT SRC = "Utility.js" LANGUAGE =
   

2. Specified:
         Phrase
         Modify type:  Insert Before
         To Search: 5
         To Replace or Insert: 34
         Whole Words: OFF
   
    Action:
         Line in a file before modification: 1256789
         Line in a file after modification: 123456789


3. Specified:
         Phrase
         Modify type:  Delete
         To Search: abc
         Case Sensitive: ON
         Whole Words: ON
   
    Action:
         Line in a file before modification: abcde  abc   de  ABC  DE
         Line in a file after modification: abcde    de  ABC  DE

4. Specified:
         Multiline
         Modify type:  Replace with Spaces
         To Search:
    ; Day Month Year (e.g., 03 Jun 2000)
         Case Sensitive: OFF
         Ignore Leading Spaces: ON
         Ignore Trailing Spaces: ON
   
    Action:

         Lines in a file before modification:

    date1 = 2DIGIT SP month SP 4DIGIT
                 ; day month year (e.g., 03 Jun 2000)
    date2 = 2DIGIT "-" month "-" 2DIGIT

         Lines in a file after modification:

    date1 = 2DIGIT SP month SP 4DIGIT

    date2 = 2DIGIT "-" month "-" 2DIGIT

5. Specified:
         Multiline
         Modify type: Insert After
         To Search:
    weekday = "Monday" | "Tuesday" | "Wednesday"
    | "Thursday" | "Friday" | "Saturday" | "Sunday"
         To Replace or Insert:
   month = "Jan" | "Feb" | "Mar" | "Apr"
    | "May" | "Jun" | "Jul" | "Aug"
         Case Sensitive: ON
         Ignore Leading Spaces: ON
         Ignore Trailing Spaces: ON
   
    Action:

         Lines in a file before modification:

   wkday = "Mon" | "Tue" | "Wed"
    | "Thu" | "Fri" | "Sat" | "Sun"
   weekday = "Monday" | "Tuesday" | "Wednesday"
    | "Thursday" | "Friday" | "Saturday" | "Sunday"
    | "Sep" | "Oct" | "Nov" | "Dec"
 
         Lines in the file after modification:

   wkday = "Mon" | "Tue" | "Wed"
    | "Thu" | "Fri" | "Sat" | "Sun"
   weekday = "Monday" | "Tuesday" | "Wednesday"
    | "Thursday" | "Friday" | "Saturday" | "Sunday"
   month = "Jan" | "Feb" | "Mar" | "Apr"
    | "May" | "Jun" | "Jul" | "Aug"
    | "Sep" | "Oct" | "Nov" | "Dec"

6. Specified:
         Reg Expr
         Modify type:  Replace
         To Search: "s.*?\.
         To Replace or Insert: "Utility.
         Case Sensitive: OFF
   
    Action:
 
         Line in a file before modification: <SCRIPT SRC = "Stack.js" LANGUAGE =
         Line in a file after modification: <SCRIPT SRC = "Utility.js" LANGUAGE =

Search. Find files that meet the specified requirements.
Modify Selected. Modify files selected in the List.
Modify All. Modify all files displayed in the List.
Delete Items. Delete the selected files from the List.

Stop. Stop the search operation.
Undo. Use the backup files to undo the last modification.



 

2008 | SearchReplaceText.com