in reply to Re: Re: old Perl regex problem
in thread old Perl regex problem

That will fail on file name ending in "IQ-000", as you demand that the sixth character from the end isn't equal to an I.

You seem to be changing your requirements over time. This makes it hard to be helpful. As things stand now, I suggest:

/^PH.*(?:[^I][^H]|I[^HF])-000$/
Abigail