split question in perl
Hi,
How would I use split (or anything else you see fit) to return the data between
and
<
in Perl?
Thanks a lot!
Hi,
How would I use split (or anything else you see fit) to return the data between
and
<
in Perl?
Thanks a lot!
Mark Hensler posted this at 03:31 — 5th August 2001.
He has: 4,048 posts
Joined: Aug 2000
Here's some Quickie Code [untested]
$my_var =~ m/<FONT FACE="Verdana" SIZE="5">(.*?)</i;
'You can read more about Perl Regular Expressions here.
Mark Hensler
If there is no answer on Google, then there is no question.
japhy posted this at 02:53 — 6th August 2001.
They have: 161 posts
Joined: Dec 1999
You might want to consider using a genuine HTML parser. Even the simplest tasks can become frustrating, when dealing with less-than-ideal data.
m0dulus posted this at 03:32 — 6th August 2001.
They have: 84 posts
Joined: Jun 2001
I fixed this.. no more help needed thanks anyhow
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.