function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yucel MoranYucel Moran 

Find exact word in a String

Hi,

 

I'm trying to evaluate a address to avoid duplicate information, in this case I developed a apex class that consult a custom dictionary, the idea is take exact words from the Street and replace for a new one for example:

 

st - Street
st. - Street

ave. - Avenue
av - Avenue

 

Now I'm using the CONTAINS method and REPLACE, but just I need is the exact word to replace it. I hope anybody can help me with some ideas.

 

Thanks

DipakDipak

Can you please elaborate your need,
I could NOT able to visulize the requirement