Extract substring with regex

andrea93

Member
Hi,
i have a variable string,
but there is alway a sub string: AB123456789.
The lenght is static, mat the number can be variable (es. AB987654321)

Is there a regex to extract this substring?

Tnks
 
[A-B] : Upper case alphabets between A-B
[a-b] : lower case alphabets between a-b

if the alphabets are from A-Z use [A-Z]
{2} Implies the first two letters in your string
[0-9] implies any numbers between 0-9
{9} the next 9numbers in your string

considering your string as alpha number aplha{2}Numeric{9}
 
Top