Bitcoin Forum
November 09, 2024, 06:52:10 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [BOUNTY] 0.2 btc for a regular expression in php [CLOSED]  (Read 1198 times)
payb.tc (OP)
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
October 05, 2011, 02:50:39 PM
Last edit: October 05, 2011, 03:50:36 PM by payb.tc
 #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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!