[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Foolish Perl Question
- Subject: [ale] Foolish Perl Question
- From: krugerb at benning.army.mil (Bob Kruger)
- Date: Fri, 22 Mar 2002 14:26:20 -0500
I wrote a small perl script to clean up some output from another
application. This data is then imported into a SQL database.
One of the most tedious ascpect is trying to filter out all of the
"font" markers in the format of [font color = blue], [font color = red]
What I would like to do is come up with something that allows a
wildcard. For example, right now:
$line =~ s/\[font color \=red\]//g;
will strip out all of the "[font color = red]"
What I would like to do is identify anything that starts with "[font" ,
and strip everything until the next "]". So, if the character "*" did
that, it would look something like:
Regards - Bob Kruger
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.