Unix and Linux Discussions Tagged with regexp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
4,024 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
6,273 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,458 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,818 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
13,597 |
Shell Programming and Scripting |
|
|
|
39 |
12,234 |
OS X (Apple) |
|
|
|
2 |
2,810 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
2,840 |
Shell Programming and Scripting |
|
|
|
3 |
1,732 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,516 |
Shell Programming and Scripting |
|
|
|
6 |
2,658 |
Shell Programming and Scripting |
|
|
|
7 |
23,596 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
7,818 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,576 |
Shell Programming and Scripting |
|
|
|
6 |
6,925 |
Shell Programming and Scripting |
|
|
|
7 |
4,978 |
Shell Programming and Scripting |
|
|
|
1 |
1,753 |
Shell Programming and Scripting |
|
|
|
8 |
4,942 |
Shell Programming and Scripting |
|
|
|
7 |
5,748 |
Shell Programming and Scripting |
|
|
|
5 |
3,752 |
Shell Programming and Scripting |
|
|
|
2 |
2,130 |
Shell Programming and Scripting |
|
|
|
2 |
2,671 |
Shell Programming and Scripting |
|
|
|
2 |
5,538 |
Shell Programming and Scripting |
|
|
|
15 |
4,662 |
Shell Programming and Scripting |
|
|
|
3 |
2,403 |
Shell Programming and Scripting |
|
|
|
2 |
2,553 |
Shell Programming and Scripting |
|
|
|
2 |
4,280 |
Shell Programming and Scripting |
|
|
|
2 |
5,505 |
Shell Programming and Scripting |
|
|
|
1 |
9,004 |
Shell Programming and Scripting |
|
|
|
8 |
5,095 |
Shell Programming and Scripting |
|
|
|
4 |
4,122 |
Programming |
|
|
|
7 |
4,424 |
Shell Programming and Scripting |
|
|
|
2 |
2,415 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,441 |
Shell Programming and Scripting |
|
|
|
6 |
3,625 |
Shell Programming and Scripting |
|
|
|
1 |
7,839 |
UNIX for Dummies Questions & Answers |
shevek::regexp(3) Library Functions Manual shevek::regexp(3)
NAME
shevek::regexp -
Use regular expressions.
SYNOPSIS
#include <regexp.hh>
Public Member Functions
regexp (std::string const &pattern=std::string(), bool case_sensitive=false)
Create a new object, and optionally fill it with a pattern.
regexp & operator= (std::string const &pattern)
Set a pattern, removing the previous one.
regexp (regexp const &that)
Copy a regexp.
regexp & operator= (regexp const &that)
Copy a regexp.
void case_sensitive (bool value=true)
Set whether the evaluation should be case sensitive.
~regexp ()
Destructor, this cleans up internal structures.
bool operator() (std::string const &data)
Check whether the pattern matches a string, and fill internal match structures if it does.
std::string operator[] (unsigned idx) const
Retrieve the value of a subexpression from the last matched string.
bool valid (unsigned idx) const
Test whether a subexpression was filled by the last matching string.
unsigned size () const
Get the number of subexpression.
std::string transform (std::string const &data) const
Transform a string with -codes according to the last matching string.
std::string const & pattern () const
Get the current pattern.
Detailed Description
Use regular expressions.
Member Function Documentation
std::string shevek::regexp::operator[] (unsignedidx) const
Retrieve the value of a subexpression from the last matched string. This throws an exception if the subexpression is not valid.
Author
Generated automatically by Doxygen for libshevek from the source code.
libshevek Fri May 11 2012 shevek::regexp(3)