try {
m = SearchCompiler.compile(searchStr, false, false);
} catch (ParseError ex) {
return null;
}
return m.match(env.osm);
}
/**
* Obtains the JOSM'key {@link org.openstreetmap.josm.data.Preferences} string for key {@code key},
* and defaults to {@code def} if that is null.