How to alert on UK NI numbers and credit card details

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please sign in to see details of an important advisory in our Customer Advisories area.

How to alert on UK NI numbers and credit card details

L0 Member

Hi All,

For credit card numbers there is a default CC# which I can assign a weight to, does anyone know the Palo version of a regex to match UK NI numbers?

This one works in a regex tester but not on the Palo because it doesn't like the formatting of it

^([a-zA-Z]){2}( )?([0-9]){2}( )?([0-9]){2}( )?([0-9]){2}( )?([a-zA-Z]){1}?$

Actually the 1st two digits can't be any letter so it would be better if it only matched the first two digits according to these rules :-

doesn't allow D, F, I, Q, U or V for the first two letters and doesn't allow O for the second letter; on top of this, the prefix letters can not be BG, GB, NK, KN, TN, NT and ZZ. Also the suffix letter is either A, B, C or D, but may be represented by a space if unknown.

I'm hoping someone has done this before and has a working regex I can use!


  • 0 replies
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!