D
dmalhotr2001
Hi,
I would like to figure out a certain issue.
I have a regular expression [^\']+ that checks whether there's a
apostrophe in a particular string. In my case I'm using a file path
and filename so for example.
C:\Documents and Settings\test_user\Local Settings\Temporary Internet
Files\Content.IE5\testing.html
Now this works to check if there is an apostrophe.
However I don't know how to check ONLY if there is an apostrophe in the
file name, meaning if there is a apostrophe in testing.html example
above. I would want it to ignore it if Local's Settings folder has an
apostrophe.
Thus, what regular expression would yield an apostrophe just in the
filename at the end and would ignore apostrophes in the folder paths.
Thanks in advance.
I would like to figure out a certain issue.
I have a regular expression [^\']+ that checks whether there's a
apostrophe in a particular string. In my case I'm using a file path
and filename so for example.
C:\Documents and Settings\test_user\Local Settings\Temporary Internet
Files\Content.IE5\testing.html
Now this works to check if there is an apostrophe.
However I don't know how to check ONLY if there is an apostrophe in the
file name, meaning if there is a apostrophe in testing.html example
above. I would want it to ignore it if Local's Settings folder has an
apostrophe.
Thus, what regular expression would yield an apostrophe just in the
filename at the end and would ignore apostrophes in the folder paths.
Thanks in advance.