, Regex-Ninja *, (, , : ...)
, ?
, , , . , :
I assume that you want to separate the path, file name and file extension, if you separated "/", first you know that the file name should be in the last index of the array, then you can try to split only the last index to find out if you can find the file extension or not. Then you do not need to worry about whether there are dots in the path names.
* (Any reasonable users of regular expressions should not be offended.;)
source
share