Search and Replace : Java Glossary

go to home page S words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish 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) ©1996-2009 2009-02-15 Roedy Green, Canadian Mind Products
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_17. If you can’t see the listings, or if you just want to learn more about JDisplay, click here for help.
logoSearch and Replace
SR32.exe 6.3 Last revised/verified: 2009-07-24 is Funduc’s utility to search and replace strings in files. The utility 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.

Tips

Gotchas


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/searchreplace.html J:\mindprod\jgloss\searchreplace.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.109]
You are visitor number 25,945.