Bitcoin Forum
May 24, 2018, 08:56:21 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: [BOUNTY] 0.2 btc for a regular expression in php [CLOSED]  (Read 1066 times)
Hero Member
Offline Offline

Activity: 812
Merit: 1000

View Profile
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:

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

need a little php code block for this, thanks.

EDIT: worked this out myself.

preg_match_all("/<[^>]+>/",$tmp,$out, PREG_PATTERN_ORDER);
Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!