On Mon, 2008-10-06 at 04:51 -0700, irata wrote:
> perl -e '$text = "(7)   32"; printf "[%s][%s]\n", ( $text =~  /\((\d+)
> \)\s+(\d+)/ )'

$ perl -e '$text = "(7)   32"; printf "[%s][%s]\n", ( $text =~  /\((\d+)
> \)\s+(\d+)/ )'
[][]
$ perl -e '$text = "(7)   32"; printf "[%s][%s]\n", ( $text =~  
/\((\d+)\)\s+(\d+)/ )'
[7][32]


Remove the newline.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Linux is obsolete.
-- Andrew Tanenbaum


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to