Community discussions

MikroTik App
 
User avatar
maximan
Trainer
Trainer
Topic Author
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Regex to validate SOFT-ID

Tue Jan 31, 2012 8:15 pm

Hi.

I'm writing an aplication and some work of this tool is validate the new format of SOFT-ID . So i write the regex to do it, the expression is:
^[A-Z0-9]{4}-[A-Z0-9]{4}$
This matches with the new format (8 digit A1B2-C3D4 format) with numbers or words on
4 digit - 4 digit
I share it if you need it. If you have some recommendation it will be welcome.

M.

Who is online

Users browsing this forum: No registered users and 33 guests