fork download
  1. set text {show log
  2.  
  3. ===============================================================================
  4. Event Log
  5. ===============================================================================
  6. Description : Default System Log
  7. Log contents [size=500 next event=7 (not wrapped)]
  8.  
  9. 6 2020/05/22 12:36:05.81 UTC CRITICAL: IOM #2001 Base IOM
  10. "IOM:1>some text here routes "
  11.  
  12. 5 2020/05/22 12:36:05.52 UTC CRITICAL: IOM #2001 Base IOM
  13. "IOM:2>some other text routes "
  14.  
  15. 4 2020/05/22 12:36:05.10 UTC MINOR: abc #2001 some text here also 222 def "
  16.  
  17. 3 2020/05/22 12:36:05.09 UTC WARNING: abc #2011 some text here 111 ghj"
  18.  
  19. 1 2020/05/22 12:35:47.60 UTC INDETERMINATE: ghe #2010 a,b, c="7" "
  20. }
  21. regexp -nocase -- {(?n)^"IOM:.*} $text match
  22. puts $match
  23. regexp -nocase -line -- {^"IOM:.*} $text match2
  24. puts $match2
  25.  
Success #stdin #stdout 0s 5172KB
stdin
Standard input is empty
stdout
"IOM:1>some text here routes "
"IOM:1>some text here routes "