How to extract particular key word

Hi ,
I am screen scraping some data and as i am scraping i am able to scrape complete sentence
i want the order number that is there in middle of that sentence how to do it

ex,. Step1: Subscription A-S00012123 has been placed .
i want only A-S00012123 how can i get it

hi @manojv02500 … Using this Regex pattern…You can extract the needed portion…

You can also use string.split method also…

Hi @manojv02500

You can try using the below steps

input1= “Subscription A-S00012123 has been placed .”

order= System.Text.RegularExpressions.Regex.Match(input1,"(?<=Subscription ).[\S]+").Value