title: Given a string, generate a regex that can parse *similar* strings
body: <p>For example, given the string "2009/11/12" I want to get the regex ("\d{2}/d{2}/d{4}"), so I'll be able to match "2001/01/02" too.</p>
  
  <p>Is there something that does that? Something similar? Any idea' as to how to do it?</p>