Matches Regular Expressions against strings. More...
#include <qaregexp.hpp>
Example:
// Match for <text> = <text> QaRegExp reg( "([a-zA-Z]+)[ \t]*=[ \t]*([a-zA-Z]+)" ); // Now match the string if ( reg.match( "RegExpTest = True" ) ) { QaRegExpMatch m = reg.matches(); // Now print out all matches for ( QStringList::ConstIterator it = m.toString().begin(); it != m.toString().end(); ++it ) { qDebug( "\"%s\"", (*it).ascii() ); } } // Or use it like this if ( reg.match( "RegExpTest = True", 2 ) ) qDebug( "%s", reg.matchString( 2 ).ascii() );
Creates a regexp query.
[virtual]
Destroys the object
Sets the case sensitivity flag.
Matches a string against the regexp on the given sub expression.
Matches a string against the regexp on the given sub expression, will match as many times as possible and extracting the wanted subexpression every time it matches.
Splits up the string using the regexp string as the delimiter.