title: how to capture a word with non word character in regex
body: <p>I have a regular expression for capturing particular part of a string</p>
  
  <pre><code>[Pp]rocess[\s]+(?&lt;proc&gt;[\w-]*|[\/\w-]*)\([\d]*\) killed by signal (?&lt;signame&gt;[\w\s]*)-(?&lt;signum&gt;[\d]+)
  
  eg:Process  tivosh(1426) killed by signal Hangup-1 
  </code></pre>
  
  <p>output : 
  proc -> tivosh</p>
  
  <p>signame -> Hangup</p>
  
  <p>signum -> 1</p>
  
  <p>In some cases the signame was coming as comibination "Trace/breakpoint trap" </p>
  
  <pre><code>eg: process  uploader(2404) killed by signal Trace/breakpoint trap-5 
  </code></pre>
  
  <p>Please let me know, how to capture a word+non word character?</p>