I'm receiving messages from a socket and writing an html log of it. I need to search the messages for any kind of urls and retrieve the list and also to replace it with foo.
            Asked
            
        
        
            Active
            
        
            Viewed 586 times
        
    1 Answers
0
            
            
        Find one of many regular expressions for a URL and use QString::replace (the regex overload).
QString s;
QRegExp regexp(...);
s.replace(regexp, "foo");
 
     
    