Kindly try with this method, this might help you resolving this,
1.assign this text to a string variable or a just variable
2. then you can use Split method to the get the value (R96BMV), even if there is a chance of space or tab that can come between the word PNR and Full colon as you say.
inside pattern in matches activity with input as your string variable,
if you are clear that string between PNR: and FLIGHT NO:, is of this format like starting with
string, with numbers in middle and ending with a string, like “R96BMV”, then use this
pattern = “\w{1,9}\d{1,9}\w{1,9}” \this searches for string with a character in the beginning with a number
in the middle and again a character in the end
It works…!
if you are not clear with what the format would be of between PNR: and FLIGHT NO:, then use this
pattern = “[^\s][^\W]+” \this neglects the space, non-characters and gives out only the strings
…here the output will be of IENUMERABLE, like {“PNR”,“RB98BMV”,“FLIGHT”,“NO”}, you can get the
value you want, like as you said the second one.