I have some of the data extracted from the database and contain the information I need. The text is entered in free form, so it is written in different ways. The only thing I know for sure is that I'm looking for the first number after a given line, but after that a certain line (before the number) can also be any text.
I tried this (where mytokenis the line that I know for sure there), but it does not work.
/(mytoken|MYTOKEN)(.*)\d{1}/
/(mytoken|MYTOKEN)[a-zA-Z]+\d{1}/
/(mytoken|MYTOKEN)(.*)[0-9]/
/(mytoken|MYTOKEN)[a-zA-Z]+[0-9]/
It mytokencan even be written in capitals, in lower case or in a combination of capitals and in lower case. Can an expression be case insensitive?
source
share