Editors > Screen Editor Reference > Screen Editor Commands > S - Search and Replace

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

S - Search and Replace (Screen Editor) (m618603+s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

S - Search and Replace

Replaces one character string with another.

Command

S

Action

Press S. The Status/Command Line prompts:

CS SEARCH for:

Note: CS indicates that the search will be case-sensitive. Use the = command to toggle between case-sensitive and -insensitive.

Enter the string to be located and replaced (the SEARCH string). The Status/Command Line prompts:

REPLACE with:

Enter the replacement string. The Status/Command Line prompts:

REPLACE (A)ll, (S)elective:

You must press either A or S; there is no default value for this selection. The Status/Command Line then prompts:

Thru line# Ret=current, 0=Exit

Enter a line number. The program searches from the current line to the line number specified. Press RETURN for only the current line. Press 0 (zero) to exit the search and replace routine.

If you press S for selective replacement, the Status/Command Line prompts:

(R)eplace  (Q)uit  (Return)=Next

Press RETURN to skip this occurrence and go to the next one.

Case Sensitivity

You can choose whether the R command matches strings in a case-sensitive or -insensitive way. For example, if you search for "FRED", this will match "Fred", "FRED" and "fred" if the search is case-insensitive but only "FRED" if it is case-sensitive. Whether searches are case-sensitive or -insensitive can be selected as follows:

Note that, if you are editing multiple items, the current setting is retained when you open a new item.

RealityV15.0Comment on this topic