-
How to match Hex values in pattern?
--pattern "|FE 00 86 11|" -
How to match Hex values with PCRE?
--pcre "/\x2e\x2e\x2f/" -
Match one character
--pcre "/[abc]/" -
Match a group of characters
--pcre "/(abc|hello|ninja)/" -
Negative Match: String not starting with Java
--pcre "/^(?!java)/"
-
Caret (^) Symbol
e.g. [^0-9]: any character that is not a digit -
Negative lookaheads: specify a pattern that should not be present after the current position
Syntax: (?!pattern)
e.g., -- pcre "/^(?!java)/" -
Pipe (|) symbol: Specify multiple patterns by the pipe symbol, allowing you to match any pattern except the ones specified
e.g. ^(?!dog$ | cat$): match any word not dog or cat