title: Regex for maximum 4 digit with or without decimal followed by N Or S
body: <p>I need a regex that allows a total of 5 Characters |Number followed by N or N.</p>
  <p>prepared regex:</p>
  <pre><code>/^\h*(?:(?:\d|[1-9 ]{1,4})?)[NSns]$/gm
  </code></pre>
  <p>Problem statement:<strong>I am not able to add fraction point to regex</strong></p>
  <p>Valid Output:</p>
  <pre><code>1S
  2N
  1 S
  1212S
  1212s
  1212N
  1212n
  1212n
  121 n
  121 N
  121 s
  121 S
  12.22S
  1.2N
  12.2S
  12.3 N
  </code></pre>
  <p>Invalid outputs:</p>
  <pre><code>123456S
  12343S
  122.122
  12334.12
  </code></pre>