I have to search all files that start with a certain text. Some of the files have a BOM, others don't.
Is there a way to do that with a regular expression?
use Perl regex:
(?<!(?s:.))^object
or perhaps (you have to try):
\A^object
Please, check them carefully as I can't verify them in UE at this moment. The negative lookbehind (?<!...) sometimes does not work as supposed because of wrong implementation.