fix regexp for oneline conditions