archimca has asked for the wisdom of the Perl Monks concerning the following question:
Here is the string
%MYBOARD{project1|nameofproject1 remarks="Good,Verygood,bext,excellent +" grade="7" teacher="Priyanka"}%
with the below mention code I can fetch the value of grade
$var =~ m/%MYBOARD{.*?grade=\"([^\"]*)"[^}]*}%What would be the regular expression if i want to fetch the value of 'teacher'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression
by toolic (Bishop) on Feb 17, 2011 at 21:31 UTC | |
|
Re: Regular Expression
by Ratazong (Monsignor) on Feb 17, 2011 at 21:33 UTC | |
|
Re: Regular Expression
by NetWallah (Canon) on Feb 17, 2011 at 21:38 UTC | |
by oko1 (Deacon) on Feb 18, 2011 at 03:11 UTC | |
|
Re: Regular Expression
by 0xbeef (Hermit) on Feb 17, 2011 at 22:17 UTC | |
|
Re: Regular Expression
by CountZero (Bishop) on Feb 18, 2011 at 11:21 UTC |