Regex Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreRegex Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 29th, 2012, 11:43 AM
regex_newbie regex_newbie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 2 regex_newbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 34 sec
Reputation 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

Reply With Quote
  #2  
Old August 29th, 2012, 05:38 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 10 m 2 sec
Reputation Power: 41
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

Reply With Quote
  #3  
Old August 30th, 2012, 01:50 PM
regex_newbie regex_newbie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 2 regex_newbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 34 sec
Reputation 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreRegex Programming > Very simple regex question

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap