Ah, I just looked at resplit.  It's actually returning correct results. 
  The regex works like a delimiter in a list -- it's what's between the 
array results, not what they should be.

You might try this as a regex for resplit:
</?p>+

You could also use refind() and loop over the results using mid() to 
extract the strings, or you could try reextract() to do something 
similar (I've never used it, but it gets mentioned a lot).

HTH.

--Ben

John Beynon wrote:
> yeah, I tried that one, I'm using this as my string:
> 
> <p>Para1</p><p>Para2</p><p>Para3</p>
> 
> and i get;
> 
> array
> 1     [empty string]
> 2     <p>Para2</p>
> 
> when i dump the results - using ReSplit(mystring,'<p>.*?</p>')


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225546
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to