![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regular Expression question | Katkota | UNIX for Dummies Questions & Answers | 6 | 05-14-2008 12:23 PM |
| question (regular expression related) | metalwarrior | UNIX for Dummies Questions & Answers | 1 | 02-03-2008 07:51 PM |
| Regular expression question | umen | Shell Programming and Scripting | 7 | 11-21-2007 05:45 PM |
| Regular Expression Question | Krispy | UNIX for Dummies Questions & Answers | 3 | 01-20-2006 06:36 AM |
| question about regular expression | brentdeback | Shell Programming and Scripting | 0 | 11-14-2005 12:04 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Question on Regular Expression
Folks;
Could some one tell me what these 2 regular expressions mean: [^\n\r]*/([^/\n\r]*)/[^/\n\r]* (\d\d\d\d/\d\d/\d\d/[-_\.\w\d]*?) |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks Smiling Dragon;
Now i have this question If i have a list of directories, for example: /fs/pas/2007/4/6/2634210/admdat/examin /fs/pas/2007/4/6/2634210/admdat2/stat /fs/pas/2007/4/6/2634210/admdat3/data /fs/pas/2007/4/6/2634210/im_2/0b.dcm Now; my questions are: 1. How to use RE to extract the last file such as "examin and stat,..."? 2. How to use RE to extract the parent directory for the last file. such as "amdat, amdat2, im_2,..."? 3. How to use RE to extract the date in the middle "2007/4/6"? |
|||
| Google UNIX.COM |