How can I get everything inside:
50px;">GET_EVERYTHING_HERE</span>
I've used this pattern:
'#50px;">(.+)</span>#s'
but doesn't work.
Get everything inside
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
-
mikecampbell
- Forum Commoner
- Posts: 38
- Joined: Tue Oct 12, 2010 7:26 pm
Re: Get everything inside
Works fine for me...
Array
(
[0] => 50px;">GET_EVERYTHING_HERE</span>
[1] => GET_EVERYTHING_HERE
)
Code: Select all
preg_match('#50px;">(.+)</span>#s', '50px;">GET_EVERYTHING_HERE</span>', $matches);
print_r($matches);(
[0] => 50px;">GET_EVERYTHING_HERE</span>
[1] => GET_EVERYTHING_HERE
)