Hi Jason, this should do it:
stFirstPara = REFindNoCase("<p[^>]*>.*?</p>", s, 1, true);
sFirstPara = Mid(s, stFirstPara.pos[1], stFirstPara.len[1]);where s is your content.
Jason Bayly wrote:
Hi All,
Need to grab the first paragraph of text from html formatted content in the DB. So im guessing i need a regex expression to retrieve anything between <p> and </p> the first occurence of each etc.
Still trying to work out regexes anyone wanna give me a head start?
Cheers
Jason
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
--
Lindsay Evans, Interface Developer, Red Square Productions
http://redsquare.com.au/
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
