Re: How to remove comments with grep?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49298
interpreted = N
texte = >Kenneth Grome wrote:>My original webdna template file has a lot of webdna comments in it. >I want to remove all these comments when writing this file to a new >file.>>You cannot, at least not with grep alone. You need an actual parser >(finite state machine actually) to correctly handle either WebDNA or >HTML comments. Grep is a line oriented operator, instead of a stream >oriented operator, (although you can fake out the Perl regex's to >treat the entire string as one 'line').Thanks John. It looks like I need a different solution than webdna ... ;)-- Sincerely,Kenneth GromePS: My email address is kengrome@softhome.net until further notice.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Kenneth Grome wrote:>My original webdna template file has a lot of webdna comments in it. >I want to remove all these comments when writing this file to a new >file.>>You cannot, at least not with grep alone. You need an actual parser >(finite state machine actually) to correctly handle either WebDNA or >HTML comments. Grep is a line oriented operator, instead of a stream >oriented operator, (although you can fake out the Perl regex's to >treat the entire string as one 'line').Thanks John. It looks like I need a different solution than webdna ... ;)-- Sincerely,Kenneth GromePS: My email address is kengrome@softhome.net until further notice.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
The beginning (1997)
Frames and WebCat (1997)
problem with [Format Days_To_Date] (2000)
order in the search? (2003)
Error:Too many nested [xxx] contexts (1997)
select multiple (1997)
Tab Charactor (1997)
Missing from Docs [folderName] (1997)
ShowNext Command (1997)
PSC recommends what date format yr 2000??? (1997)
WebCatalog.acgi quitting with error Type 2 (1998)
RE: Questions To Answer (1997)
Help! WebCat2 bug (1997)
URL for Discussion Archive (1997)
One other big addition... (1997)
Off-topic: Cheap hosting (but not webdna) ... (2002)
RE: strip .0 off off IPaddress (1999)
Stumped (1999)
Looking For WebCatalog Migration Assistance (2003)
bull (1998)