title: Regular expression for variable name
body: <p>I'm still using <code>[A-Za-z][A-Za-z_$0-9]</code> as a regular expression for catching a variable name (in bison-flex). Now I want to add dot and square bracket into it.
  For example it could be <code>abc.def[12]</code>. How can I do it?</p>