Doc: fix QRegularExpression::wildcardToRegularExpression snippet
The sample output from wildcardToRegularExpression was from an earlier version of the implementation. This patch fixes this. Change-Id: I48108add01aafed69490ef2527c1ea6a209b220b Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
This commit is contained in:
parent
989e86074a
commit
b6022eccc4
@ -353,7 +353,10 @@ while (i.hasNext()) {
|
||||
{
|
||||
//! [31]
|
||||
QString wildcard = QRegularExpression::wildcardToRegularExpression("*.jpeg");
|
||||
// wilcard == ".*\.jpeg"
|
||||
// Will match files with names like:
|
||||
// foo.jpeg
|
||||
// f_o_o.jpeg
|
||||
// föö.jpeg
|
||||
//! [31]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user