FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


A Qt regular expression problem





inuyasha
Code:

   QRegExp rx("for\\(\\s*(.*)\\s*;\\s*(.*)\\s*;\\s*(.*)\\s*\\)");
   rx.setMinimal(true);
   code = code.replace(rx, "for(\\1; \\2; \\3)");


I tried to format each for loop but without luck. Doesn't \s match all the invisible characters?
Related topics
Echoing Titles
Perl server referencing
PHP - Find and Delete
PHP Regex
mod_rewrite code
[JS] Regular expressions global match get first group
regular expression
Complicated regular expression (for preg_replace)
Formulate Regular Expression
best programming editor
Help with regular expression
Two validations process
Python Expression Evaluator Version 2
301 Redirect
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.