added regex processing