PDA

View Full Version : need help for my QRegExp



patcito
27th May 2006, 17:05
I have a QRegExp that looks like this:


QRegExp rxpercent("percent done: [0,9]{1,3}.[0,9]");


the problem is that the number of whitespace between percent done: and [0,9]{1,3}.[0,9] varies depending on th number of digit. Is there a regexp to catch something like:



QRegExp rxpercent("percent done:<unknown occurence of whitespace>[0,9]{1,3}.[0,9]");


thanx in advance

Pat

jacek
27th May 2006, 17:29
Use "\\s+" or "\\s*".