KELECTRIC.BNK.20160526
compare above expression and take 8 digits after 2nd full stop and total of 22 characters,
below expression is working fine till 2nd full stop but not taking number after full stop
^(KELECTRIC)\.(BNK)+\.$
KELECTRIC.BNK.20160526
compare above expression and take 8 digits after 2nd full stop and total of 22 characters,
below expression is working fine till 2nd full stop but not taking number after full stop
^(KELECTRIC)\.(BNK)+\.$
You can accept number of 8 digits after 2nd full stop like this
^(KELECTRIC)\.(BNK)\.(\d{8})$
^(KELECTRIC)\.(BNK)\.([0-9]{8})$
this one answered by Kuba Wyrostek, and some other guys
thanks