#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    Very simple regex question


    Hi

    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

    Please help
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    spaceBAR Central
    Posts
    229
    Rep Power
    42
    I don't know what utility/regex engine your using to search the files but you shouldn't need the asteriks(*) or the $:
    Code:
    :2e|Temporary Items|Network Trash Folder
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0
    I knew it was simple! That worked

    And I thought I needed a wildcard so I never even tried it without

    Thank you

IMN logo majestic logo threadwatch logo seochat tools logo