0

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.

zekecoma
  • 31
  • 1

1 Answers1

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");
Community
  • 1
  • 1
Idan K
  • 20,443
  • 10
  • 63
  • 83