Good day,
I am attempting to use REGEX in Java to match certain strings from a document.
It was performing fine until I noticed that there are certain strings in the documents that are break into 2 lines and therefore the REGEX is unable to pick them up.
if (extract[i].matches("^[a-fA-F0-9]{32}$"))
{
System.out.println(extract[i]);
}
So with the above snippet, I can match strings such as "49f68a5c8493ec2c0bf489821c21fc3b"
However, the REGEX can't pick up the string if it is split into multiple lines:
49f68a5c8493ec2c0bf489821
c21fc3b
Thank you.