Can anybody guide me in the right direction...
I have some folder strucktures that I want to check for a trailing / slash, some of the folders don't have a trailing / and if it does not have a trailing / I need to add one
If I use this regex it works but it replace the last character of the folder name
Folder/name/test folder/name/test1/ folder/name/test2/
replace(/.$/ig,"/");
This regex replaces Folder/name/tes[t]/
but will take out the t
and replace it with /
Hope this makes sense...