Reply to Re: Regular expression evaluator [Was Re: Strip out CSS]

Your name:

Reply:


Posted by Neredbojias on 07/20/07 21:08

Well bust mah britches and call me cheeky, on Fri, 20 Jul 2007 16:19:51
GMT M scribed:

> I thank all for some of your suggestions but most of them deal with
> CSS and not the bigger issue of scripts, ads, irrelevant sidebars
> (tables or divs), etc. Maybe I'm coming at this the wrong way.
>
> As I mentioned, Notetab's script language does most stuff for me. In
> order to strip out CSS though I need to strip out phrases like:
> id="something"
> class="something"
> style="bunch of css attributes"
>
> I've been playing around with Notetab's (v4.95) regular expression
> search and replace but I can't seem to find a combination that finds
> the above expressions.
>
> Is there a regular expression program that will break this down for
> me? For example, the program RegEx Coach lets you enter your text,
> then test various regular expressions. The results are highlighted in
> real time in the text you entered.
>
> I need something that works IN REVERSE. i.e. I enter text, highlight
> the expression I want removed, then it tells me the regular expression
> needed to achieve that.
>
> Anything like that out there?
>
> (PS, yes, I know that removing either the stylesheet or the embedded
> styles will render any id and class calls irrelevant. However, there
> are times when I need them intact, so it would be nice to have the
> option. . .)

Why not change "<style="text/css">" and </style> to opening and closing
comment delimiters, respectively, then just reverse "class" and "id" for
all inline styles? Of course, the html itself (and j/s) would have to be
devoid of "id" calls.

--
Neredbojias
Half lies are worth twice as much as whole lies.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация