I ned to catch all occurancy of “object” in suche code:
object InvalidFilterField3: TUNIField
FieldType = uftString
FieldName = 'PRI_SERIAL'
Caption = sdfgsdfgsdfg
Category = sdfgsdfgsdfgsdfg
Opers = [opEqual, opLike, opInList, opIsNull, opIsNotNull]
DefaultOper = opLike
FieldIndex = 0
end
object UNIField1: TUNIField
FieldType = uftDate
FieldName = 'PRI_DT'
Caption = sdfgsdfgsdfg
Category = asdfasdfasdfasdf
Opers = [opEqual, opNotEqual, opLarger, opSmaller, opEqualOrLarger, opEqualOrSmaller, opBetween, opIsNull, opIsNotNull, opIn]
DefaultOper = opEqual
FieldIndex = 1
end
think that must be /object(.*)end/m but it does not =(
You need to pass up into the pattern both the dotall modifier (s) to tell PCRE that a dot means anything (including newlines) and the ungreedy modifier (U, more on greediness and modifiers on the PHP manual):