Bitcoin Forum

Bitcoin => Project Development => Topic started by: payb.tc on October 05, 2011, 02:50:39 PM



Title: [BOUNTY] 0.2 btc for a regular expression in php [CLOSED]
Post by: payb.tc on October 05, 2011, 02:50:39 PM
just looking for a quick regexp for this please:

input string has <lots of stuff> including <stuff in angled brackets>.

i need it to output something like:

Code:
array (
[0]=>lots of stuff
[1]=>stuff in angled brackets
)

need a little php code block for this, thanks.


EDIT: worked this out myself.

Code:
preg_match_all("/<[^>]+>/",$tmp,$out, PREG_PATTERN_ORDER);