Search and Replace : Java Glossary
home S words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
JDisplay neededThe JDisplay Java Applet displays the large program listings on this web page. JDisplay requires Java version 1.5 or later, preferably 1.6.0_06 . If you can’t see the listings, of you if just want to learn more about JDisplay, click here for help.
logoSearch and Replace
SR32.exe 5.9 Last revised 2007-12-30. is Funduc’s utility to search and replace strings in files. They have not been answering email for the last year, though the website is still up. . It has regular expressions, scripts, and magic replacement strings like:
Search and Replace Magic Replacement Strings
%%srfound%% Returns the current search string.
%%srfound %% - Special A special form of the %%srfound%% operator can be used to strip specified characters from the search hit. The form is: %%srfoundcharacters to remove specified here%%, where characters to remove specified here is one or more characters which, if present in the search hit, will be removed from the replace. Example: Upon a replace operation, %%srfoundiex %% removes the letters i, e, x, and <spaces> from the search hit.
%%srpath%% Returns the path (without filename) of the current file.
%%srfile%% Returns the file name (without path). This can be used to customise generic boilerplate with the file name.
%%srfiledate%% Returns the current date stamp of the file. This is the date prior to a replace made by Search and Replace.
%%srfiletime%% Returns the current time stamp of the file. This is the time prior to a replace made by Search and Replace.
%%srfilesize%% Returns the file size prior to the replace made by Search and Replace.
%%srdate%% Returns the current date of the machine.
%%srtime%% Returns the current time of the machine.
%%srprepend%%
%%srappend%%
Used in Search and Replace scripts — The search string will be prepended or appended to the file as a literal string.
%%envvar=fruit%% returns the contents of the SET fruit=strawberry environment variable. This can be used to customise boilerplate.
It can be used, with difficulty (See the Quoter Amanuensis for help), to find and replace standard sections of multiline boilerpate. It can renumber items with the %n>> operator. You can write scripts to do relatively complex editing tasks on a series of files unattended. It is very quick. The Quoter Amanuensis helps you compose regular expressions for it.

It has a companion configuring utilty srconfig.exe.

I recommend configuring it to put its favourites and scripts in some permanent data directory so they will get backed up, and so they won’t be lost on reinstall. Here is a script to annotate your CSS file colours adding a comment next to each colour number what X11 colour it is. view

Gotchas


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.18] The information on this page is for non-military use only.
You are visitor number 19,904. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/searchreplace.html J:\mindprod\jgloss\searchreplace.html