fork(4) download
  1. set text {Wed Aug 30 14:47:11.435
  2. EDT Interface : p16,
  3. Value Count : 9 References : 1, Internal : 0x1
  4. Values : 148, 365, 366, 367, 371
  5. 120577, 120578, 120631, 120632}
  6.  
  7. set pattern {\sValues\s*:\s*\d+(?:[\s,]*\d+)*}
  8. regexp $pattern $text match
  9. if {[info exists match]} {
  10. set results [regexp -all -inline {\d+} $match]
  11. puts $results
  12. } else {
  13. puts "No match"
  14. }
Success #stdin #stdout 0s 28096KB
stdin
Standard input is empty
stdout
148 365 366 367 371 120577 120578 120631 120632