On Thu, Feb 07, 2002 at 11:10:14PM +1100, Stuart wrote: > How do I match a pattern that starts with a 4 and has 16 numbers in it. > > I try /^4\d{16}/;
If it consists of 16 numbers try: /^4\d{15}/; > Also how do I match a 16 digit number that starts with either 6565 or > starts with a number in the range of 555000-555100 > > > /(^6565(\d{16})|^{555000-555100}(\d{16}))/ ---end quoted text--- /^(6565\d{12})|(555[10]00\d{10})/ Perhaps.. not tested mind. -- Frank Booth - Consultant Parasol Solutions Limited. (www.parasolsolutions.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]