// Create the recogniser and run it against the input data.
ByteArrayInputStream bais = new ByteArrayInputStream(data.getBytes());
RegexpContentRecogniser recogniser = new RegexpContentRecogniser(re);
boolean match = recogniser.recogniseContent(bais);
return match;
}
}