Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Replacing text between two html comments

by StommePoes (Scribe)
on Jul 29, 2010 at 07:03 UTC ( #851861=note: print w/ replies, xml ) Need Help??


in reply to Replacing text between two html comments

Well, as Andrew Clover states, HTML is not a regular language, so parsing with regular expressions is not recommended beyond simple cases, ahem, but in slightly more colourful language. : )

I like wfsp's idea, and ideally in a semantic page you'd likely have a header tag (h2 or something) stating "Memberships" and "Banquets" anyway... I'd rather use those for searches than comments. Plus IE has a duplicate content bug if you float stuff between comments, so fewer comments in live code are better anyway.

  • Comment on Re: Replacing text between two html comments

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://851861]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2016-06-25 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (322 votes). Check out past polls.