Posts: 3
Name: sanjeevan sivapalan
|
I have this preg_match command. I am not good with them and just learning. I want to know how to extract only the src="whatever" part and not the rest like width="adfsdf" and so on. I know that (*.)+ is not the best way to do it but I have no clue. So please help. Here's what I have so far.
PHP Code:
preg_match('/src=["\'](.*)+["\']/', $text, $match);
|