Expanded form regex to me more accepting

added [^\n]*? to allow for any character expect new line incase method is not firs property.