split question in perl

They have: 84 posts

Joined: Jun 2001

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's picture

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.

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.

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.