Dear sirs,
How to select the content of the groups suppose the string
\newcommand{\sumfun}{\sum_{i=1,2,\ldots}^{n}f(x)}
if i use the command
s/\\newcommand\{(.*?)\}\{(.*?)\}//g;
I get the value 2nd group is "\sum_{i=1,2,\ldots" But my expected output is
\sum_{i=1,2,\ldots}^{n}f(x)
(i.e. i want to select the content of matching braces)
if i use (.*) it goes to the last brace in the end of file.
Kindly suggest me an idea
Thanking you
Regards
Baskaran NK
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>