armadilloman has asked for the wisdom of the Perl Monks concerning the following question:
Basically the start pattern is '${' and the end pattern is '}'. I have tried everything I know, including the folding stuff (though I didn't understand that one so well). Here's what I'm working with now (which also doesn't work):${ThisOne} ${This${One}} ${This${One}Too} ${This${One}and${also}this} ...
I am matching in an entire file and the results from strings like '${somekindof${PKG}}' get the string 'PKG}' in the $1 global. I just want 'somekindof${PKG}' in the $1. Where am I going wrong? Thanks for the help monks. ArmadilloManm/ \$\{( [^\{\$\}]* (?: \$\{ [^\$\{\}]+ \} [^\$\{\}]* )* )\} /gxs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp Question
by Zaxo (Archbishop) on Jun 11, 2002 at 11:17 UTC | |
by flounder99 (Friar) on Jun 11, 2002 at 16:49 UTC | |
|
Re: Regexp Question
by I0 (Priest) on Jun 11, 2002 at 16:18 UTC | |
|
Re: Regexp Question
by talexb (Chancellor) on Jun 11, 2002 at 12:44 UTC | |
|
Re: Regexp Question
by Anonymous Monk on Jun 11, 2002 at 11:27 UTC |