I've tested the below match rule which generates a positive match on records with the same 7 characters at the end of an account number. You should be able to change the regex to "^\\w{3}", but I have not tested it.
You can actually test and see the match tokens which will be generated by a configuration without deploying it using this API / tool:
https://developer.reltio.com/private/swagger.htm?module=Data%20Operation#/Match/generateMatchTokens
{
"uri":"configuration/entityTypes/CustomerOrganization/matchGroups/Right7AccountNumber",
"label":"Exact Right(Account Number,7)",
"type":"suspect",
"useOvOnly":"false",
"rule":{
"exact":[
"configuration/entityTypes/CustomerOrganization/attributes/AccountNumber"
],
"matchTokenClasses":{
"mapping":[
{
"attribute":"configuration/entityTypes/CustomerOrganization/attributes/AccountNumber",
"parameters":[
{
"parameter":"groups",
"values":[
{
"pattern":"\\w{1,7}$",
"className":"com.reltio.match.token.ExactMatchToken"
}
]
}
],
"class":"com.reltio.match.token.CustomMatchToken"
}
]
},
"comparatorClasses":{
"mapping":[
{
"attribute":"configuration/entityTypes/CustomerOrganization/attributes/AccountNumber",
"parameters":[
{
"parameter":"groups",
"values":[
{
"pattern":"\\w{1,7}$",
"className":"com.reltio.match.comparator.BasicStringComparator"
}
]
}
],
"class":"com.reltio.match.comparator.CustomComparator"
}
]
}
},
"scoreStandalone":15,
"scoreIncremental":30
}
------------------------------
Dan Gage
Principal Solution Consultant
------------------------------