fork(5) download
  1. set a "10.20.30.40"
  2. set rest [regexp {[0-9]+\.([0-9]+)\.([0-9]+)\.[0-9]+} $a match submatch1 submatch2]
  3. puts $submatch1
  4. puts $submatch2
  5.  
Success #stdin #stdout 0s 15904KB
stdin
Standard input is empty
stdout
20
30