Pre-defined Search and Replace patterns

Search and Replace Patterns may be defined in the ModeFiles or in a Patterns file. But some patterns are already defined in ModeFiles. These are the ModeFiles and some of the patterns defined.

BaseMode

Name Pattern Search or Replace
Bullet ({' '} '\-*o' ' ') Search
c_FALSE "FALSE" Replace
c_TRUE "TRUE" Replace
ee_url {'A-Za-z_0-9./~+\-:;*\`()?%=@&$,!#'}+ Search
email emailpart {'.' emailpart} "@" emailpart {'.' emailpart}+ Search
emailpart {'A-Za-z0-9_\-'}+ Search
http scheme ee_url Search
Quoted (< {'>' [' ']}+) Search
scheme "https://" | "http://" | "ftp://" | "telnet://" | "file:/" | "mailto:" | "news:" | "stronghelp:" Search
Spaces ({' '}) Search
www "www." ee_url Search
The following, starting _, are used as parameters to a function
_Complete {" "} ((Upper [{Upper}+ | {Lower}+]) | {Lower}+ ["_"]) | {Punct|Digit}+ Search
_DeleteWord _MoveWord Search
_EndSpc {'\t '}+ > Search
_foldindent {' \t'} ~NL . Replace
_foldstar {' \t'} "*" Replace
_Indent {" "|"\t"} Search
_MarkWord {AlphaNum|"_"}+ | {Punct}+ | {' \t'}+ Search
_MoveWord {AlphaNum|"_"}+ | {Punct}+ Search
_ParPrefix < [Quoted] @1 [Bullet] @2 [Spaces] Search
_rwrap @01 " " Replace
_spct {" " | "\t"}+ Search
_SpellIgnore email | http | www | ( {Upper}+ ~? ) Search
_Wrap ~NL Any @1 {" "} ~(NL NL) NL {'\t '} Search

Diff Mode

diffcmnd NL diffheader NL {diffcontent NL}+ Search
diffcmnd < "diff " ** > Search
diffcontent < (' !'|("+" ~"+")|("-" ~"-")) * > Search
diffheader < ("*** " * NL "--- " * NL ) Search
file index NL filesep NL rcsfile NL revision NL diff Search
filename (("/" filesystem "::") | (("Index: " | "*** " | "+++ " | "--- ")@0 )) {AlphaNum | Punct}+ Search
filesep < "===================================================================" > Search
filesystem "ADFS" | "CDFS" | "IZipFS" | "SCSI" | "IDEFS" | "Net" | ("Net#" AlphaNum) | "Pipe" | "RAM" | "Resources" | "LanMan" | ("LanMan#" AlphaNum) | "LanMan98" | ("LanMan98#" AlphaNum) | "DOOMFS" Search
header < ("CVS RISC OS port by " | "CVS is ported " | "The SSH functions are based on the PuTTY ") * > Search
index < "Index: " ** > Search
rcsfile < "RCS file: /" ** > Search
revision < "retrieving revision " ** > Search
status < ["."] "cvs diff: " * > Search
_segment {Digit|','} 'acd' Digit {Digit|','} Search
SearchReplace
EXIFinfo
HTML
JavaScript
Lua
News News
Obey
Perl
PHP
Python
StrongHTML StrongHTML

Was this page helpful? Please email me and/or rate this page:


If you want a reply make sure any email address @torrens.org will not get spam-binned!
Optional comment

Other relevant pages

Top of page


Page Information

http://css.torrens.org/valid-html401-bluehttp://css.torrens.org/valid-css Document URI: http://stronged.torrens.org/man/search/defpats.html
Page first published Monday the 25th of June, 2018
Last modified:Wed, 06 Mar 2019 19:14:29 GMT
© 2018 - 2023 Richard Torrens.