HTML::TokeParser::Simple : is't suitable for me ??

J

jussi

Hi gurus


I need to modify HTML page by finding and replaicing some strings. Here
is few exsamples what I need to do (inside FORM tags):

!!more html code in the same line !! <a
href="javascript:CreateList(TopForm)"><img
src="images/playselected.gif" bgcolor="#949494" align="right/"
border="0"></a> !!more html code in the same line !!

This should replace with this one:
&nbsp;

And more I need to find and replace:

<a
href="javascript:popUpPlayFile('./PlayFile.asp?E:\\video\\506-TEST-VIDEO.mpg@$$@506-SRI%TEST_VIDEO',1)">

should be like this:

<a href="file://server/mpegs/506-TEST-VIDEO.mpg>

I have tryit regular expressions to manage with this, but its very
hard.

Any help would be nice.

-Jussi
 
S

Sherm Pendley

jussi said:
I need to modify HTML page by finding and replaicing some strings.
....

I have tryit regular expressions to manage with this, but its very
hard.

Yes it is, which is why the FAQ says not to do it that way:

perldoc -q html

The first question deals primarily with removing all the markup and leaving
just plain text, but the point it makes about using regexes vs. using a
parser module is just as valid for what you're doing.

sherm--
 
J

jussi

Could you please give an code exsample how to manage my problem. I have
read the doc, but couldn't get it work.

Thansk advance
-Jussi
 
S

Sherm Pendley

jussi said:
Could you please give an code exsample how to manage my problem.

What problem would that be? I'm not psychic, and you didn't bother to quote
any of the relevant conversation, so I have no idea.
I have read the doc, but couldn't get it work.

"It doesn't work" is about the most vague, useless problem description you
could possibly give. What code did you try? What were you expecting it to
do, and what did it do instead?

Have you read the posting guidelines for this group yet?

sherm--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top