Re: sed on html pages
Silvio Siefke <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 1 Mar 2014 22:47:37 -0500 Ron Scott-Adams <[email protected]> wrote: > There’s a larger problem here: do not use RegEx to parse HTML. It > ends in sadness, guaranteed. See > http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 Ok for that to understand need sure little more time. Thank you for link, but what give alternatives? Hand Job? I has run now sed more then 10 times over the html blog and found not a mistake. > It’s tempting to assume that with a little RegEx you can whip HTML > pages into the shape you want, but it is a steadily degrading > process, and it is simply the wrong way to do things, for various > reasons outlined in the above link and elsewhere. There’s a reason > why dynamic web languages were invented. Yes that the website more open security lacks. I can understand when you has bigger sites and more as 10 articles for day. I has before run PHP script and i hate it. Not all are programmer and i think self when my blog was running i feel not well because not know is a lack or not. Now i use Nikola (Python Static Blog Generator) and be happy. Only the code i hate when is not to read. That's why i generate the page, let run tidy but tidy only should clean and no they set divs and ids. That's why i think sed was best option to fix it. I has onboard and can direct use. Only when i see what people make with it i know typical linux thinking must begin to study for use. > At some point, the best way to provide help with sed is to assist in > the understanding of when it is the wrong tool for the job. This is > such a point. No Problem, then ask not when need help. When not find i can use geany. So much is it not, but i think for what i need a computer when at end all must make manual? Not all are profis to search this ultimative tool for a specific job. When sed not the right tool for html pages, why sed page is built with this tool? To understand sed sure must understand regex, for understand regex you need study. Im a hobby computer user, so i work in a construction company. I can you sure explain which tools you need to build a house, for a pc i search the easy way without much install program on my system. That's why i use Linux, i can use software without much trash. Im open for all advice, i swear and im ever impressed in people which understand. For that link which u write say only explain so what i see a really tool they not called by a name. Or im blind, but i read the article later when i has other work fix. Thank you for help & Nice Day Silvio PS: Sorry English is not so perfect, i hope all is understanding. When not my box is open for a dialog.