If I were just trying to remove all beginning and end span tags, I'd use
something like

</?span[^>]*>

and replace it with the empty string.

Not tested, I've barely started the caffeiene, YMMV.  :-)

--Ben

Deanna Schneider wrote:

> Okay, I've tried a million variations of this regex in studio, and none of
> them work. All I want to do is dump all the stupid left-over word html
> spans....
>
> So that stuff like this:
> <span style='font-size:8.0pt;'>Activity</span>
>
> Becomes this:
> Activity
>
> I've tried:
> <span.*>(.*)</span>
>
> In studio I get a bad _expression_ error.
>
> In Dreamweaver, it finds some stuff, but doesn't find anything with funky
> white space. So, I tried
> <span.*>([.\s\r\n\t]*)</span>
> Which I _think_ says:
> find the literal text "<span"
> followed by any number of additional characters
> followed by the literal ">"
> followed by any number of charaters, spaces, carriage returns, line feeds or
> tabs (and remember this chunk)
> followed by the literal text "</span>"
>
> But, it doesn't find anything, even though there are hundreds like this:
> <span style='font-size:8.0pt;'>Selecting
>           key child development topics to teach others</span>
>
> What am I missing? (I so suck at regex.)
>
> --
> Deanna Schneider
> UWEX-Cooperative Extension
> Interactive Media Developer
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to