You can use meta-characters in the 'Search For' field:
. | any character except newline | + | one or more times |
* | zero or more times | ? | zero or one time |
{n} | match exact n times | {n,m} | at least n, at most m times |
| | pipe: a|b matches a or b | - | hyphen, match a range of chars |
^ | beginning of a line | $ | end of a line |
[...] | one of the char's of a set | [^...] | negated character set |
\b | word boundary | \B | word non boundary |
\d | numeral [0-9] | \D | non numeral [^0-9] |
\s | single white space | \S | single non white space |
\w | [A-Za-z0-9_] | \W | [^A-Za-z0-9_] |
(...) | grouping are stored as $1..$9 | \. | escape a meta char |
The 'Replace with' field can use $1..$9 as a backreference to parentheses of 'Search for' field.
Example:
Search for /abc|def/ will match the word 'abc' or the word 'def'
Search for /bwiki/b will match the word 'wiki' but not the word 'jspwiki'.
Search for ^[IVXMDCL]+\. will match any combination of roman numeral char's followed by a period
Search for /(-?\d+)(\d{3})/ and replace with $1,$2 to insert commas in large integers.
This is the EditFindAndReplaceHelp page.
More info on regular expressions
and RegExp Sandbox
Add new attachment
Here's a short reminder on the most common formatting rules you have at your disposal. A complete list is available in TextFormattingRules.
(empty line) Make a paragraph break. ---- Horizontal ruler [link] Create hyperlink to "link", where "link" can be either an internal WikiName or an external link (http://) [text|link] Create a hyperlink where the link text is different from the actual hyperlink link. [text|wiki:link] Create a hyperlink where the link text is different from the actual hyperlink link, and the hyperlink points to a named Wiki. This supports interWiki linking. * Make a bulleted list (must be in first column). Use more (**) for deeper indentations. # Make a numbered list (must be in first column). Use more (##, ###) for deeper indentations. !, !!, !!! Start a line with an exclamation mark (!) to make a heading. More exclamation marks mean bigger headings. __text__ Makes text bold. ''text'' Makes text in italics (notice that these are single quotes (')) {{text}} Makes text in monospaced font. ;term:def Defines 'term' with 'def'. Use this with empty 'term' to make short comments. \\ Forced line break (please use sparingly). |text|more text| Makes a table. Double bars for a table heading.
Don't try to use HTML, since it just won't work.
To embed images just put them available on the web using one of the approved formats, and they will get inlined automatically. To see the list of approved formats, go check SystemInfo.
To make a code block, use triple {'s to open, and triple }'s to close.
(Wondering where this text comes from? It's on a page called Edit Page Help, which you can edit too!)