Ten Forward Blog
tech • mobile • web • madison, wisconsin
Showing Results for Keyword: regex (clear)
![](https://tenforward.consulting/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakk2IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a97807e1d80125b575ba22ec8d11b3d372666c65/Screen%20Shot%202020-11-10%20at%203.32.58%20PM.png)
Rails & Regex: How to validate for length of a number with or without a hyphen
Published: November 12, 2020
By Hilary Stohs-Krause
What follows is our quest to craft a regex validation that ensured a certain amount of numbers, with or without a hyphen, and our breakdown of how it all works. (Read more)