in reply to Re: Help with a regular expression for file name parsing
in thread Help with a regular expression for file name parsing
$data = join '', <DATA>; print "$_\n" for $data =~ m[\@include\s('[^']+'|"[^"]+"|.+?(?<!\\))\s] +g; __DATA__ #some "random stuff" @include "some file" did you parse that? #more 'random' stuff @include 'another file' you sure? #and more random stuff @include yet\ another\ file positive?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help with a regular expression for file name parsing
by bontchev (Sexton) on Dec 07, 2011 at 12:07 UTC | |
by TJPride (Pilgrim) on Dec 07, 2011 at 13:23 UTC |