Hi,
I have built a transform that excludes special characters from last name. This was done so we can create email using the last last word of last name.
Example input
Last name: Test Romen-Apple
lastwordtransform output: Apple
However, my transform is not handling apostrophe’s correctly.
Example input:
Last name: Test D’test
lastwordtransform output: test
I would like to remove apostrope as well and would like the below expected output
Expected output:
Last name: Test D’test
lastwordtransform output: Dtest
I tried to use replace all table but it is not working. Can you please tell me what I am missing? Thank you!
Current transform below:
{
"name": "Last Word Transform",
"type": "substring",
"attributes": {
"begin": {
"attributes": {
"input": {
"type": "replaceAll",
"attributes": {
"input": {
"attributes": {
"name": "lastNameAccountCreate"
},
"type": "identityAttribute"
},
"table": {
"[^a-zA-Z]": " ",
"[']":""
}
}
},
"substring": " "
},
"type": "lastIndexOf"
},
"beginOffset": 1,
"input": {
"attributes": {
"name": "lastNameAccountCreate"
},
"type": "identityAttribute"
}
}
}