Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Where FirstName, LastName, FormName, and EmailAddress are the actual values, not the variable names. What I need to do, is highlight each of those variables by placing a <B> after the first "@" and a </B> before the second "@", in each one of those variables (without removing the "@"). Best I can come up with is going through the string one character at a time, and watching which "@" I am on. There has got to be a better way to perform this. Iterating over the whole string like that seems sloppy.Patron @FirstName@ @LastName@ has filled out the @FormName@ form. Plea +se send them an email at @EmailAddress@.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Matching Problem
by Abigail-II (Bishop) on Aug 06, 2003 at 13:01 UTC | |
by allolex (Curate) on Aug 06, 2003 at 13:21 UTC | |
|
Re: Pattern Matching Problem
by allolex (Curate) on Aug 06, 2003 at 13:14 UTC | |
by Abigail-II (Bishop) on Aug 06, 2003 at 13:26 UTC | |
|
Re: Pattern Matching Problem
by ph0enix (Friar) on Aug 06, 2003 at 13:19 UTC | |
|
Re: Pattern Matching Problem
by monktim (Friar) on Aug 06, 2003 at 20:23 UTC | |
|
Re: Pattern Matching Problem
by eric256 (Parson) on Aug 06, 2003 at 17:04 UTC |