Suppose I have a string say "Hello ::2130837661:: stackoverflow, How ::2130837664:: are you?"
And I have a predefined Integer Arraylist like [ 2130837661, 2130837662, 2130837663, 2130837664, 2130837665, 2130837666, 2130837667, 2130837668 ]
I want to check if given string contains integer from that arraylist, it should replace by new word say "EXAMPLE".
For example above string(after replacement) will be :
"Hello EXAMPLE stackoverflow, How EXAMPLE are you?"
Any feasible solution to do this?
Thanks in advance.