Page 1 of 1

Splitting Tokens

Posted: Tue Oct 15, 2013 12:38 am
by U
I have a small problem with pattern-action language that I'd appreciate some help with.

Address data contains insufficient space, for example 64MAIN ST which returns >+ as its pattern.

What actions do I need to include to copy the 64 to {HouseNumber} and the MAIN to {StreetName1}? I can't figure this out from the Pattern Action Reference manual.

Thank you for your time.

Posted: Tue Oct 15, 2013 12:41 am
by ray.wurlod
Try this (from page 25 of the manual):

Code: Select all

> | T
COPY [1](n)  {HouseNumber}
COPY [1](-c) {StreetName1}
COPY_A [2] {StreetType}
You may prefer to use intermediate variables, also discussed on page 25.

Posted: Tue Oct 15, 2013 12:45 am
by U
Thank you for speedy response.

I can't believe I missed that! :oops: