I am looping trough a txt file which contains lines for example:
asdasdasd
lorem ipsum
lorem 12345-1
more lorem ipsum bacon
From this I need to know when the line founds text 12345-1
Lorem in the beging is inrelative.
Can I use stripos like
if (stripos('/^[1-9]{0,5}$-1/', $line) !== false)
I dont know the right regex. Of course the 12345 can be what ever, but its always 5 digits and ends with -1