title: Java Regex for lastname, firstname in java
body: <p>I am new to Regex and I want to look for <strong>lastname, firstname</strong> </p>
  
  <p>I have written the following as regex but it is always failing. I don't care if lastname contains digits or anything but all I need to check is that lastname and firstname are separated by a space and a comma. I can do it manually but I want to use regex to do this. </p>
  
  <pre><code>^[\\w][\\w\\,\\s\\w]$
  </code></pre>