Construction regex processing
transform pattern from JSON file to one usable in Java on input text