I am trying to use a Regular Expression to pull a file name from a full path into a variable.
Example:
C:\\Documents\Files\FileName.jpg
I want to pull "FileName.jpg" out of this.
I have previously done this in Perl, but the following Perl code just pulls out the 'g' off the end when I use it in Javascript:
/[^\.+]$/
Is it possible to do this in Javascript?
Thanks.
Example:
C:\\Documents\Files\FileName.jpg
I want to pull "FileName.jpg" out of this.
I have previously done this in Perl, but the following Perl code just pulls out the 'g' off the end when I use it in Javascript:
/[^\.+]$/
Is it possible to do this in Javascript?
Thanks.