Bitcoin Forum
December 04, 2016, 10:35:39 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [BOUNTY] 0.2 btc for a regular expression in php [CLOSED]  (Read 985 times)
payb.tc
Hero Member
*****
Offline Offline

Activity: 812



View Profile
October 05, 2011, 02:50:39 PM
 #1

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);
Pages: [1]
  Print  
 
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!