Works for me. Your string, your code, my print statement:
$_ = "/MediaBox [ 0 0 614.39999 792 ]"; my ($x, $y) = m/^\/MediaBox \[ \S+ \S+ (\S+) (\S+) \]$/; print "$x $y\n";
produces:
614.39999 792In reply to Re: Regex problem
by Zed_Lopez
in thread Regex problem
by ogxela
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |