[Bostonphptalk] Extracting and replacing text in tags
Joseph Crawford
codebowl at gmail.com
Sat Jan 31 18:18:33 EST 2009
why not use a little regex and preg_match?
Joseph Crawford
http://josephcrawford.com/
On Jan 31, 2009, at 5:55 PM, Kenneth Downs wrote:
> I'm going nuts here trying to extract PRE tags, look at their
> classes, and then call geshi.
>
> So you have some html, like <pre class='x'>blah blah</pre>
>
> mixed in with plenty of other html.
>
> I'd like to capture pre tags, its content, and the class name.
>
> Any ideas?
>
> --
> Kenneth Downs
> Secure Data Software, Inc.
> www.secdat.com www.andromeda-project.org
> 631-689-7200 Fax: 631-689-0527
> cell: 631-379-0010
>
> _______________________________________________
> Bostonphptalk mailing list
> Bostonphptalk at bostonphp.org
> http://seven.pairlist.net/mailman/listinfo/bostonphptalk
More information about the Bostonphptalk
mailing list