whoshiring
whoshiring copied to clipboard
Country exclusion
Something that is missing from ALL the job hunting websites:
A filter that excludes certain countries.
For example, an Iranian can't work in the USA because of Pres. Trump's travel ban for certain countries.
Or maybe a Muslim woman doesn't like the fact that she can't wear the burqa in certain countries. They should also be able to filter out those countries.
Or any other reason for that matter. country exclusion is a must.
And this problem would be easy to solve if everybody added a ,USA
after Redwood City, CA
.
Sorry, Github did not notify me of this (or I have sth. screwed up). Anyway... I guess doing this through Regex would be tough or impossible, esp. since as you note a lot of jobs do not even mention US/USA. So can you think of a solution? This app too is slave to the authors of the listings. Perhaps a note to HN itself asking folks to include sth like "..| ISOCC [UK FR TZ...] |..."? I found the folks at HN quite responsive while building this.
No problem.
I believe the way is to have an if statement were the text goes through a second regex as well. We also have the list of 2 charactered names of the states. And there usually is a comma and space before the states' abbreviation.
Just a thought. I might be free tomorrow. I can check the possibilities out there. 🌷
On Fri, 13 Jul 2018, 19:21 Kenneth Tilton, [email protected] wrote:
Sorry, Github did not notify me of this (or I have sth. screwed up). Anyway... I guess doing this through Regex would be tough or impossible, esp. since as you note a lot of jobs do not even mention US/USA. So can you think of a solution? This app too is slave to the authors of the listings. Perhaps a note to HN itself asking folks to include sth like "..| ISOCC [UK FR TZ...] |..."?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kennytilton/whoshiring/issues/1#issuecomment-404856658, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkfJdosrQ30b-8qOdTRu3jtVHFlAhIfks5uGLP8gaJpZM4VFb4N .
I tried a regex to exclude US entries with ^([^U]*(U[^S])?)*U?$
. The page goes unresponsive, at least on Chrome.
Thx, confirmed (on Opera). I will check this out, but may not get to it for a while. I just started a new gig and am locked in on that. But thanks for the report!
Thanks, Kenny. I don't know JS or have any experience with web development, but I do have a programming background. I will be happy to poke around if you can provide some pointers on where to look.
OK, it turns out that, according to this site https://www.regexpal.com, that "expression is infinite" because it can match zero characters. Maybe that is a JS/regex thing because I am pretty sure I checked it in some regex checker site, but like a dummy I prolly forgot to make sure it was a JS site. I wish I was a regex whiz, but definitely not I fear.
Hmm, try this:
^((?!.US.).)*$
Unfortunately not everyone mentions US. I forget where I found that, but I googled sth like "regex exclude". Here is a different answer with multiples:
^(?!.*cake.(?:milk|butter)).cake.\w+.
From https://stackoverflow.com/questions/7674172/javascript-regex-excluding-certain-word-phrase
You might try US and some popular states like NY and CA. hth!