|
-
Jul 14th, 2009, 05:41 PM
#1
Thread Starter
Lively Member
Simple thing in PHP
Hey thanks for reading this 
I want to extract data between two strings from source code of page.So like;
<b>Nanana: </b>Data<br>
So it should extract just Data from this string.I bet it can be done using RegEx but I am having huge problems with it so if anyone could share working example how could i do it.
Thx
-
Jul 14th, 2009, 06:38 PM
#2
Thread Starter
Lively Member
Re: Simple thing in PHP
Okay figured it out myself 
function lol($start, $end, $str)
{
$split1 = explode($start, $str);
$out = str_replace($end, '', $split1[1]);
}
If anyone figures is out how to do with regex please let me know
-
Jul 23rd, 2009, 08:42 AM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|