You can use my example in the other topic where this was discussed for how to do it in rails and use http://rubular.com/ to tweak your regex.
You can use my example in the other topic where this was discussed for how to do it in rails and use http://rubular.com/ to tweak your regex.