August 29th, 2012, 12:43 PM
Very simple regex question
I will only be using regex once to hide certain files on a linux server and I can't seem to find the simple answer I am looking for.
I am trying to hide files that contain this string ":2e" without the quotation marks.
So what I have tried is this
"(*:2e*|Temporary Items|Network Trash Folder)$"
the :2e string is the only one that doesn't work
August 29th, 2012, 06:38 PM
I don't know what utility/regex engine your using to search the files but you shouldn't need the asteriks(*) or the $:
:2e|Temporary Items|Network Trash Folder
August 30th, 2012, 02:50 PM
I knew it was simple! That worked
And I thought I needed a wildcard so I never even tried it without