We want to test a value given in a text field with a regular
expression. We are trying to do it this way:

@browser.text_field(:name,"vareeier").set("123456789")
@browser.text_field(:name,"vareeier").value.should_equal(/[0-9]{9}/)

This is not working for us. We also tried using
@browser.text_field(:name,"vareeier").value.matches(/[0-9]{9}/)
@browser.text_field(:name,"vareeier").verify_contains(/[0-9]{9}/)

None of these work.
Help....