RUTA Postal code value

Team,

we need to fetch postal value like say 1066AA or 1066 AA

for this one i write like RUTA :" NUM{REGEXP(“…”)}CAP{REGEXP(“..”) → MARK(EntityType,1,3)};" which is working only for 1066 AA OR i need to find value also for 1066AA (Without space)

1066 AA OR 1066AA

Can some one provide me the regex to work for both the scenarios

@umamaheswar.bk

Document{-> MARKFAST(Code, "\\d{4}\\s?[A-Za-z]{2}")};

@VivekK16711353

Can you please check this one?

 NUM{REGEXP('\\d{4}')}CAP{REGEXP('[A-Z]{2}') -> MARK(EntityType,1,3)};

@umamaheswar.bk

Can you please check this one?

NUM{REGEXP('\\d{4}')}CAP{REGEXP('[A-Z]{2}') -> MARK(EntityType,1,3)};

@RameshSangili

Hello Ramesh,

I tested with above expression, This is not working for .,

we have code like this : 1066AA or 1066 AA, I’m looking for a expression to work in with space or without space

Hi @umamaheswar.bk,

Try this code

RUTA: “NUM{REGEXP(‘\d{4}\s?[A-Za-z]{2}’)}CAP{REGEXP(‘..’)}->MARK(EntityType,1,3);”

@RameshSangili

Hello Ramesh,

We also need to fetch the values like

1123 AZ London

1122AA london street

How can we achieve this ?