Hi all, I am currently reading a text file containing invoice data extracted from a pdf file. I use Regex to extract strings which I need but recently I found a case which I wondered if was possible to read.
For example, strVar = Person Address #01-01
I would get the unit number using System.Text.RegularExpressions.Regex.Match(strVar,"(?<=(Person Address)).*").Value
But if the “Person Address” is in full uppercase or full lowercase, the Regex code will not read the “#01-01”. How can I make it so that the Regex code is able to read the same words stated inside regardless of whether or not it is full uppercase, full lowercase or mixed?