Mail.body.split Get IMAP Mail Messages problem

i have used Get IMAP Mail Messages problem to get the mail body
now i want to divide body in different parts.

for example the body is

hello!

os:12414
pas:31414

deadline:2018/11/15


how to split it ?
i just want 2018/11/15

Use the below codes.

  • Assign StringOS = strBody.substring(strBody.inexof(“os:”)+3 , 5)
  • Assign StringPAS = strBody.substring(strBody.inexof(“pas:”)+4 , 5)
  • Assign StringDeadLine = strBody.substring(strBody.inexof(“deadline:”)+9 ,10)