fix regexp issue on operand ~=
add basic support for attribute selectors