user2754070
user2754070

Reputation: 507

Pattern matching in system path using C++ functionalities

I am working on Installation of particular Qt based Windows GUI application, which needs DLLs to be placed in the PATH system environment variable. For placing I could somehow manage to append Installation_path to PATH. But while uninstallation of my application I want to search for where my installation path is and then I've to remove those and put normal path as usually without modifying it. Is a regex my companion or any other way in doing this?

P.S. I cannot use boost lib.

Upvotes: 2

Views: 383

Answers (1)

MSalters
MSalters

Reputation: 179961

You don't need a regex, all you need to do is locate a substring, case-insensitive. Since you have Qt, use indexOf

Upvotes: 1

Related Questions