I want a regular expression in java to check, if a string contains continuous 3 digits. But the problem is my string may contain unicode characters. If the string contains unicode characters it should skip the unicode characters (skip 4 ‘.’s after & AND #) and should do the checking. Some examples are
Neeraj : false
Neeraj123 : true
ӒNeeraj : false
ӒNeeraj123 : true
123N{D : true
NeerajӒ : false
NeerajDB123 : true
Ӓ : false
You need to use a negative lookbehind assertion:
You can use it as follows: