title: Dangling Meta Character and Regular expression Pattern for the String
body: <p>I want to create a pattern for the following format of string. I have come with the following format but I am stuck as I am not able to scan it properly. Below are the details </p>
  
  <p>Example String: <code>JAS 5F W 123 or BWER34 23 C 23</code></p>
  
  <p>Above String has the following rules to be followed.</p>
  
  <ol>
  <li>The last digits can be 2 or 3 digit numbers only (123 &amp;&amp; 023 or
  23)</li>
  <li>Before that only a single character is allowed case insensitive (W or c)</li>
  <li>Before that  only 2 digits or one digit and a character only "f"or"F" is allowed.</li>
  <li><p>Starting of string can be any String alphanumeric string of any length.
  All the parts are separated by space
  I came up with the following String pattern but when i run my java program it gives dangling meta character.</p>
  
  <pre><code>"*\\s([0-9][fF]|[1-9][0-9])\\s([a-zA-Z])\\s(\\d\\d|\\d\\d\\d)$"
  </code></pre></li>
  </ol>
  
  <p>Please help me in creating the correct pattern for the above String</p>