Regular Expression Help


#1

Hi all, I’m new to this and I’m after some help along regular expressions. I’m in the process of leaning regex but need an answer fast.

I currently have a regex of: [B][A-H](\d||[S,B,C,U,D,Z,P])\d{2} which allows me to input text as BA122, BBB12 BEZ05 which is great; but I want to limit the entry to only 5 digits. Can someone help with this and provide me with the correct regex?

Thanks

Shaun


#2

Does this relate to a particular lesson/exercise? If so, please post the URL of the exercise page.