in reply to Re^2: Grabbing url from iframe
in thread Grabbing url from iframe
The approach is fundamentally bad. You're using split, but you don't have a separated list of things to split on.
Either option you choose, you need to
In this case, that can all be done by one substitution.
s/ (<iframe [ ]title="YouTube[ ]video[ ]player" [ ]width=")([0-9]+)(" [ ]height=")([0-9]+)(" ) / $1 . "320" . $3 . ( (320/$2)*$4 ) . $5 /xeg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Grabbing url from iframe
by htmanning (Friar) on Feb 12, 2011 at 19:51 UTC | |
by Corion (Patriarch) on Feb 12, 2011 at 19:57 UTC | |
by htmanning (Friar) on Feb 12, 2011 at 21:03 UTC | |
by Corion (Patriarch) on Feb 12, 2011 at 21:05 UTC |