Looking for Correct Java REGEX for this kind of payload

"(?s).*(ST\\*214|ST\\*210).*"

In Java you need to enable DOTALL mode (to make . match with line terminators too). This can be done by including (?s) modifier. You had match only in this ST*214*900063730~ particular part of first string.

test

Leave a Comment