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

Who Me Too'd this topic

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!

Thanks.

Who Me Too'd this topic