fixed the CSS matching, using match instead of exec