How search only fore whole word match in QString can be done?
How search only fore whole word match in QString can be done?
Qt Code:
str.contains("Peter"); //returns trueTo copy to clipboard, switch view to plain text mode
Hope this helps
Mithin
www.mithin.in
You can use QRegExp to match at word boundaries.
J-P Nurmi
Bookmarks