0

I'm trying to write a PHP function that will scan the $content for an tag and return the SRC url.

I've tried:

<embed.+?src="(.+?)".+?<\/embed>

But I get:

Warning: preg_match_all() [function.preg-match-all]: No ending matching delimiter '>' found

HWD
  • 1,547
  • 7
  • 36
  • 72

1 Answers1

0

preg_match or preg_match_all need a delimiter

try: /<embed.+?src="(.+?)".+?<\/embed>/

The Mask
  • 17,007
  • 37
  • 111
  • 185