Go to the documentation of this file.
40 int main(
int argc,
char *argv[])
43 std::string s1(
"this .* file");
45 const char * s3 =
"this .* file";
70 wre =
"something .* value";
87 Info<<
"input list:" << rawList <<
endl;
92 const wordRe& wre = rawList[elemI].first();
93 const string& str = rawList[elemI].second();
96 <<
" equals:" << (wre == str)
97 <<
"(" << wre.
match(str,
true) <<
")"
98 <<
" match:" << wre.
match(str)
106 <<
" match:" << wre2.
match(str)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAll(list, i)
Loop across all elements in list.
Ostream & info(Ostream &) const
Output some basic info.
bool compile() const
Compile the regular expression.
Ostream & endl(Ostream &os)
Add newline and flush stream.
int main(int argc, char *argv[])
A class for handling character strings derived from std::string.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
A wordRe is a word, but can also have a regular expression for matching words.
void set(const std::string &, const compOption=DETECT)
Copy string, auto-test for regular expression or other options.
bool recompile() const
Recompile an existing regular expression.
void uncompile(const bool doStripInvalid=false) const
Frees precompiled regular expression, making wordRe a literal.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...