fork download
  1. def mob = '919892122165'
  2.  
  3.  
  4. def a = mob[mob.length()-10..mob.length()-1]
  5. println a
  6. println a[0..3]
Success #stdin #stdout 0.97s 217664KB
stdin
Standard input is empty
stdout
9892122165
9892