fork(8) download
  1. def line = "Line with 1 digits"
  2. def line2 = "222111444"
  3.  
  4. if (line =~ /\d+/) { // false
  5. println "found"
  6. } else {
  7. println "not found"
  8. }
  9.  
  10. if (line2 ==~ /\d+/) { // false
  11. println "found"
  12. } else {
  13. println "not found"
  14. }
Success #stdin #stdout 1.38s 332224KB
stdin
Standard input is empty
stdout
found
found