Re: [nyphp-talk] PHP Regexp Classic Challenge

2010-11-19 Thread David Wang
strip_tags? -d -- David Wang Entrepreneur in Training +1 (434) 298 4588 | dw...@udfi.biz | www.udfi.biz | @daSn0wie On Nov 19, 2010, at 11:51 AM, Edward Potter wrote: > but regex is just so much more hardcore! :- > > http://www.delicious.com/ejpusa/regex > > On Fri, Nov 19, 2

Re: [nyphp-talk] PHP Regexp Classic Challenge

2010-11-19 Thread Edward Potter
but regex is just so much more hardcore! :- http://www.delicious.com/ejpusa/regex On Fri, Nov 19, 2010 at 11:27 AM, Yitzchak Schaffer wrote: >> 2010/11/19 Peter Sawczynec mailto:p...@blu-studio.com>> >> >>     I need to be able to grab the first 10 words or so from a HTML laden >>     t

Re: [nyphp-talk] PHP Regexp Classic Challenge

2010-11-19 Thread Chuck Reeves
Which is why regex wont help that much. Using tidy with domdoc could help out very well: http://php.net/manual/en/book.tidy.php Thank You Chuck Reeves On Fri, Nov 19, 2010 at 11:27 AM, Yitzchak Schaffer < yitzchak.schaf...@gmx.com> wrote: > > 2010/11/

Re: [nyphp-talk] PHP Regexp Classic Challenge

2010-11-19 Thread Yitzchak Schaffer
> 2010/11/19 Peter Sawczynec mailto:p...@blu-studio.com>> > > I need to be able to grab the first 10 words or so from a HTML laden > text string that is held in a db table field where the typical field > content might be as follows below. After the processing, being left > with onl

Re: [nyphp-talk] PHP Regexp Classic Challenge

2010-11-19 Thread Chuck Reeves
I would recommend using DOMDocument instead of regex. Thank You Chuck Reeves 2010/11/19 Peter Sawczynec > I need to be able to grab the first 10 words or so from a HTML laden text > string that is held in a db table field where the typical field content > might be as follows below. After the

[nyphp-talk] PHP Regexp Classic Challenge

2010-11-19 Thread Peter Sawczynec
I need to be able to grab the first 10 words or so from a HTML laden text string that is held in a db table field where the typical field content might be as follows below. After the processing, being left with only the straight text with punctuation would be fine Target bodu content begins