Download Ektron CMS400.NET Administrator Manual

Transcript
Discussion Boards
This feature is more fully explained through the following topics.
•
”Using Regular Expressions” on page 506
•
”Adding a Replacement Word” on page 507
•
”Viewing Existing Replacement Words” on page 508
•
”Editing a Replacement Word” on page 508
•
”Deleting a Replacement Word” on page 508
Using Regular Expressions
If you would like the Replace Words feature to modify words that
contain a word you do not want used, you can use Regular
Expressions. A Regular Expression, often referred to as regex, is a
pattern of metacharaters placed around a word that describes a
string. Used for string manipulation, regex allows you to detail a
succinct description of a group of words without having to detail
each word in the group.
Regular Expression
Description
.
Matches any character, similar to a wildcard. For example, .ar matches any
three letter word ending in ar, such as car, bar, tar or far.
|
Acts as an or operator. For example, steak|stake would find steak or stake.
[]
Matches one character that is between the brackets. For example, [rst]
matches r, s or t. [d-g] matches d, e, f, or g. Another example, [bc]ar matches
bar and car. If you need to match a dash (-), use it a the beginning or end of
the group. For example, [xyz-] or [-xyz].
[^ ]
Matches one character that is not in the group. For example, [^rst] matches
any character other than r, s or t. Another example, [^bc]ar does not match bar
or car, but does match words, such as tar or far.
^
Matches the beginning of any line. For example, ^[bc]ar matches bar or car,
but only at the beginning of a line.
$
Matches the end of any line. For example, ^[bc]ar matches bar or car, but only
when it appears at the end of a line.
Ektron CMS40 0.NET Admini strator Manua l, Version 7 .6 Re v 12
506