Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool File::LoadRemoteFile(const wxString &fstr)
- {
- wxRegEx fileRegex(wxString(wxT("([\-dpcbls][rwx\-]{9})\s*([0-9]{1,15})\s*([a-z_][a-z0-9_]{0,30})\s*([a-z_][a-z0-9_]{0,30})\s*([0-9]{1,15})\s*([a-zA-Z]{3})\s*([0-9]{1,2})\s*([0-9\:]{4,5})\s*(.*)")));
- // fstr = "drwxr-xr-x 2 user group 123412 Feb 21 2013 file_name.cpp";
- if (fileRegex.Matches(fstr))
- {
- // actions
- } else
- {
- // alternative actions
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement