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
In reply to Re^3: Grabbing url from iframe
by ikegami
in thread Grabbing url from iframe
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |