![]() Registered Member ![]()
|
Hi all,
maybe something similar has already been done, or maybe is impossible: I'd like to check a local URL (i.e., a file:///) against a regexp or something similar to see if the URL can lead to the file that matches the regexp. For instance, imagine I've got a file hierachy as follows:
and imagine I've got a KUrl that points to file:///dev and I want to search for all *.java files, so that I get a list of KUrl for
Is there any library implementing this behavior in the KDE space? Otherwise any suggestion about how to handle the searching for/ pattern matching efficiently? Thanks. |
![]() Administrator ![]()
|
You probably want to take a look at QRegExp. KUrl supports converting the url to a string (I can't recall if it inherits QUrl), so it should be possible to use it with QRegExp.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft