Ask HN: Who is hiring? (June 2017)
Hey, a friendly reminder. I’m parsing the thread, all job offers added here are also available on the map on
<a href="https://whoishiring.io" rel="nofollow">https://whoishiring.io</a> or just HN items <a href="https://whoishiring.io/search/36.0440/-90.8984/4?source=hn" rel="nofollow">https://whoishiring.io/search/36.0440/-90.8984/4?source=hn</a>
If you post here, please use the below format to help me with parsing. If you won’t, no worries, I will do my best to get all the things right.<p><pre><code>  1) {company} | {job title} | {locations} | {attrs: ONSITE, REMOTE, INTERNS, VISA, SALARY, company-url}
  Google | Software Developer | SF | VISA https://google.com
  DuckDuckGo | Software Developer | Paoli PA | REMOTE, VISA, SALARY:100k-120k
  Facebook | Web-developer | Zurich | SALARY:120k CHF 
  Google | Site Reliability Engineer | London | SALARY:120k GBP, VISA, REMOTE</code></pre>
or<p><pre><code>  2) {company} | {job title} | {location}
  Google | Site Reliability Engineer | Sydney
  Facebook | Web-developer | Zurich</code></pre>
I’m using this regex to test the first line, you can test it here <a href="https://regex101.com/r/relwQD/3" rel="nofollow">https://regex101.com/r/relwQD/3</a><p><pre><code>  \s*(?P<company>[^|]+?)\s*\|\s*(?P<title>[^|]+?)\s*\|\s*(?P<locations>[^|]+?)\s*(?:\|\s*(?P<attrs>.+))?$</code></pre>
Check bellow for the SALARY regex.<p><pre><code>  SALARY:(?P<salary_min>\d+(?:k|K)?)(?:\s*\-\s*(?P<salary_max>\d+(?:k|K)?)?)?(?:\s?(?P<currency>[A-Z]{3}))?</code></pre>
and you can test it as well <a href="https://regex101.com/r/SRWkMz/2/" rel="nofollow">https://regex101.com/r/SRWkMz/2/</a><p>There is the "report" button in footer of job offers, please complain if I did something wrong.