multiple rejection

  • Thread starter Thread starter kakalka
  • Start date Start date
K

kakalka

Hi everyone,

What I'm trying to do is, to match all the countries in a list, except
US and CANADA which is (CA).

I tried a lot, but none of mine worked at all. I'm new to regular
expressins and I looks completely none sense for me. I need this for
work ASAP.

Thanks everyone.

I was starting with this: [^US]|[^CA]. But as I was told after, that
matches soemthing weird, like Not U or Not S or not C or not A =\
bassically it matches everything =)

I need to match ^US AND ^CA, basically I want to exclude this to
countries.

Thanks a lot,

Alexander
 
I was starting with this: [^US]|[^CA]. But as I was told after, that
matches soemthing weird, like Not U or Not S or not C or not A =\
bassically it matches everything =)

IANAE but [^(US|CA)] looks right.
Regex is a pita if you don't use it regular.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top