Hi All, Could you guys please help me with this regex expression.
I have two text file. I want to use regex to find first letter of last word in below text: (Only from first sentence) – that would be find C from “C24722SBCOMPO”
2037636300717009930801216252777 00029027304Test Bank - USD 30 C24722SBCOMPO
4061350300873609930801216252777 00000252150Test Bank - USD 309 F09280FIB
And another regex to find: 5 from “501457A TAYLOR” in line below
77261815910660099308012162537788 00000045950Test Bank - USD 101 501457A TAYLOR
(From line In inputString.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
Let parts = line.Split(" "c)
Where parts.Length > 2
Select parts.Last()).FirstOrDefault()