select/delete matching tags in C v1.0.2