review above attached pic the unlimited numbers converted into the Portuguese language how to possible
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
And btw, to @tomjerry.vl, I forgot that you would have to add a StringReplacer at the end to convert numbers 11-19, from "Dez e Um" to "Onze" and so on.
I execute this workbench but not getting the result this workbench consider only last characters in street name like
like
in this name your work considered only last characters and numbers remaining not consider others
please ex-plane how to resolve this situation
Put a new AttributeCreator before your AttributeCreator_2 where you create the new attribute "Digits" with the value:
@ReplaceRegEx(@Value(STRT_NAME),[^\\d+],"")
Then modify your AttributeCreator_2 to use the new attribute like this:
@Substring(@Value(Digits),-1,1)
and so on.
This will give you the numbers and translate them into text. Finally you need to use a StringReplacer for your street name where you search for @Value(Digits) and replace with _result.
Put a new AttributeCreator before your AttributeCreator_2 where you create the new attribute "Digits" with the value:
@ReplaceRegEx(@Value(STRT_NAME),[^\\d+],"")
Then modify your AttributeCreator_2 to use the new attribute like this:
@Substring(@Value(Digits),-1,1)
and so on.
This will give you the numbers and translate them into text. Finally you need to use a StringReplacer for your street name where you search for @Value(Digits) and replace with _result.
Thanks @danullen
It's working and one more extension i.e if i get value like this "path 44 highway 99"
it return 4499 but it is wrong.
i need to calculate 44 in digit and 99 in some other field like digit_1
It's working and one more extension i.e if i get value like this "path 44 highway 99"
it return 4499 but it is wrong.
i need to calculate 44 in digit and 99 in some other field like digit_1
You can just continue with the regular expressions. You can test for these special cases with this regex:
\\d+[^\\d]+\\d+
That will pass the test if there are a minimum two groups of digits with other characters between them.
Then you can split the address using other regexes to catch 44 in the attribute Digit and 99 in Digit_1. If you haven't used it yet, check out regex101.com or similar to find the correct regex for your needs. Good luck! :)