Page 1 of 1

how many tokens exist in the address field

Posted: Wed Mar 10, 2010 10:07 am
by mallikharjuna
Hi All,

how many tokens exist in the address field.

Thanks in Advance

Posted: Wed Mar 10, 2010 3:38 pm
by ray.wurlod
No idea until you explain what you mean by "tokens" and "address".

If I may guess that you mean "how many tokens exist in the address field" then, yes, a Word investigation using an address rule set will yield patterns. The number of characters in the pattern is the number of parsed tokens in the address field.

Posted: Wed Mar 10, 2010 3:55 pm
by mallikharjuna
Yes Ray you are correct. my question is "how many tokens exist in the address field"

Posted: Wed Mar 10, 2010 4:04 pm
by ray.wurlod
That's what I thought you meant, and why I answered that particular question.

To read the entirety of that answer you will need to get yourself a premium membership. Premium membership is one of the ways that the hosting and bandwidth costs of DSXchange (which you will notice carries no advertising) are defrayed.

Posted: Wed Mar 10, 2010 7:35 pm
by JoshGeorge
Have a look at STRIPLIST and SEPLIST in the rule set you are going to use in word investigation. Any character that is in both lists separates tokens in a given string.
mallikharjuna wrote:Yes Ray you are correct. my question is "how many tokens exist in the address field"

Posted: Thu Mar 11, 2010 4:47 pm
by stuartjvnorton
JoshGeorge wrote:Have a look at STRIPLIST and SEPLIST in the rule set you are going to use in word investigation. Any character that is in both lists separates tokens in a given string.
mallikharjuna wrote:Yes Ray you are correct. my question is "how many tokens exist in the address field"
As JoshGeorge says, look at the sep and strip lists.
If a character is in the seplist, it will split a token into separate tokens.
If it is in the striplist, it will remove it from the text completely.
If it is in both, it will separate the text and then be removed.

eg:

Original Text: 14/25

Seplist:
Striplist:
Result: 14/25
Tokens: 1

Seplist: /
Striplist:
Result: 14 / 25
Tokens: 3

Seplist:
Striplist: /
Result: 1425
Tokens: 1

Seplist: /
Striplist: /
Result: 14 25
Tokens: 2


Hope this helps.