Specifications

MeaningAssertion
A word boundary. For example, the regexp \bOK\b means match
immediately after a word boundary (example: start of string or whitespace)
\b
the letter 'O' then the letter 'K' immediately before another word boundary
(example: end of string or whitespace). But note that the assertion does
not actually match any whitespace so if we write (\bOK\b) and we have a
match it will only contain 'OK' even if the string is "It's OK now".
A non-word boundary. This assertion is true wherever \b is false. For
example, if we searched for \Bon\B in "Left on" the match would fail
\B
(space and end of string are not non-word boundaries), but it would
match in "tonne".
Positive lookahead. This assertion is true if the expression matches at this
point in the regexp. For example, const(?=\s+char) matches 'const'
(?=E)
whenever it is followed by 'char', as in 'static const char *'. (Compare with
const\s+char, which matches 'static const char *'.)
Negative lookahead. This assertion is true if the expression does not match
at this point in the regexp. For example, const(?!\s+char) matches 'const'
except when it is followed by 'char'.
(?!E)
Case insensitive matching
You can make the complete regexp case insensitive by surrounding it by the /.../i constuct. More
precisely, if the regexp starts with a forward slash and ends with a forward slash followed by
the letter i, then matching for the complete regexp is case insensitive.
For example:
Matches these stringsRegexp
ABCABC
abcabc
ABC, abc, Abc/ABC/i
/ABC//ABC/
13.6 JavaScript for applications
Introduction
The Adobe Creative Suite applications (Acrobat, Photoshop, Illustrator and InDesign) can be
extensively scripted through JavaScript (a scripting language interpreted and executed by the
application). All four applications offer a similar overall interface for working with JavaScript,
although each application offers a different set of JavaScript functions to actually control the
application’s functionality
201
Enfocus Switch 10