You need to sign in to do that
Don't have an account?
Raghu_dev
Find and replace a string on a string field
Hello all !!
I have to do a find and replace a string on a variable (string). I know there is a matcher object but I couldnt find much documentation on the usage. Any one else used this object ? or is there any other simple function to get this done. Pls help
Thanks
Raghu
Message Edited by Raghu_dev on 05-14-2008 05:45 PM
I have to do a find and replace a string on a variable (string). I know there is a matcher object but I couldnt find much documentation on the usage. Any one else used this object ? or is there any other simple function to get this done. Pls help
Thanks
Raghu
Message Edited by Raghu_dev on 05-14-2008 05:45 PM
I did the following and everything is working fine.
All Answers
Take a look at the Apex Developer's Guide, specifically the "Pattern and Matcher Classes" on p.185. You'll have to use the replaceAll() or replaceFirst() methods for the Matcher object, described on p.193.
I did the following and everything is working fine.
Hello Team,
How could i use Regular Expressions in my replace function, i had to remove the first number 0 in the String, anyone can help me please???
C.Rut__c = C.Rut_Indexado__c = RutArreglado.replace('0','');