Regex to remove an file path suffix -
I am trying, and failed, to find a reggae that will change all of the following. Is it possible to do this with a single expression instead of many people for each level in the file path?:
- / folder_UK = & gt; / Folder - / folder_uk / = & gt; / Folder / - / folder_uk / folder2 / = & gt; / Folder / folder2 / - / folderx / folder_uk = & gt; / Folderx / folder - / folderx / folder_uk / = & gt; / FolderX / folder / - / folderx / folder_uk / folder2 / = & gt; / Folder / folder / folder 2 / Essentially, I want to strip any "_UK /" s and leave the '_UK' without the previous slash .
Thanks in advance.
Just replace _UK with empty string. Regex:
_UK Repeat string:
empty string
Comments
Post a Comment