PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Dec 07, 2019 1:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue May 24, 2005 3:09 am 
Offline
Forum Contributor

Joined: Tue Jul 27, 2004 6:19 am
Posts: 206
Hello

I have a string that be a simple as "Hello"
or may be embedded as value inside an html tags like so:
"<b><span ...>Hello</span></b>"
I need some way to extract the "Hello" part from the string

Is there any HTML processing function in PHP that can help me here?

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 3:31 am 
Offline
DevNet Resident

Joined: Tue Nov 18, 2003 2:09 pm
Posts: 1826
Location: Middlesbrough, UK
someone will be abvle to write the regex for you.
what your looking for basically is:

preg_match everything between <> + </>


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 7:00 am 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
Moved to Regex.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 1:38 pm 
Offline
Forum Regular
User avatar

Joined: Sat Mar 12, 2005 8:13 pm
Posts: 703
Location: US


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 4:35 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group