regular expression

The <regular expression> inspectors let you use regular expressions (a.k.a regexes) in relevance statements. On Windows, the regex inspectors use the Boost library implementation, which supports the 'POSIX-Extended regular expression' and 'Perl regular expressions' syntaxes. See these pages https://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/syntax/basic_extended.html and https://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html for more information. On other operating systems, the regex inspectors use a native library instead of the Boost library. For this reason, we recommend writing 'POSIX-compliant regular expressions', so that they work across different operative systems. POSIX defines a set of character classes, marked with the syntax '[:className:]', that can be used within brackets (i.e. '[[:className:]]') to match a character of that class. For example, you can write '[[:alpha:]]' to match alphabetic characters, '[[:digit:]]' to match digits, and '[[:space:]]' to match whitespaces. At this page you can find a table with equivalent character classes https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions#Character_classes

Version Platforms
8.0.584.0 AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows
8.1.535.0 Debian, Ubuntu
9.5.13.130 Raspbian

Creation

case insensitive perl regex <string> : regular expression
case insensitive perl regular expression <string> : regular expression
case insensitive regex <string> : regular expression
case insensitive regular expression <string> : regular expression
perl regex <string> : regular expression
perl regular expression <string> : regular expression
regular expression <string> : regular expression

Operators

<string> starts with <regular expression> : boolean