15. An apparatus comprising: a processing device; and a memory coupled to the processing device, the memory storing instructions which, when executed by the processing device, cause the apparatus to: derive one or more optimized pattern matching rules from an original pattern matching rule, wherein the original pattern matching rule includes a constant text string and one or more regular expression operators that define variable patterns of characters that occur prior to or following the text string in order to satisfy the original pattern matching rule, and wherein deriving one or more optimized pattern matching rules includes extracting the constant text string from the original pattern matching rule to generate an optimized pattern matching rule including the constant text string and excluding the one or more regular expression operators; determine if the one or more optimized pattern matching rules match any of the data to be parsed; bypass an application of the original pattern matching rule to the data when the optimized pattern matching rule including the constant string does not match the data; and apply the original pattern matching rule to the data when the one or more optimized pattern matching rues match the data, wherein applying the original pattern matching rule includes determining if the original pattern matching rule matches any of the data to be parsed.
15. An apparatus comprising: a processing device; and a memory coupled to the processing device, the memory storing instructions which, when executed by the processing device, cause the apparatus to: derive one or more optimized pattern matching rules from an original pattern matching rule, wherein the original pattern matching rule includes a constant text string and one or more regular expression operators that define variable patterns of characters that occur prior to or following the text string in order to satisfy the original pattern matching rule, and wherein deriving one or more optimized pattern matching rules includes extracting the constant text string from the original pattern matching rule to generate an optimized pattern matching rule including the constant text string and excluding the one or more regular expression operators; determine if the one or more optimized pattern matching rules match any of the data to be parsed; bypass an application of the original pattern matching rule to the data when the optimized pattern matching rule including the constant string does not match the data; and apply the original pattern matching rule to the data when the one or more optimized pattern matching rues match the data, wherein applying the original pattern matching rule includes determining if the original pattern matching rule matches any of the data to be parsed. 18. The apparatus of claim 15 , wherein the applying the original pattern matching rule to the data further comprises: determine the location within the data where the optimized pattern matching rule matches; and apply the original pattern matching rule to a subsection of the data, wherein the start of the boundary of the subsection of the data is defined by the respective match location within the data.