Originally posted by kishore goswami:
Hi all
Is there a method available in any of the java packages which will replace a expression with a different one in the source string.
Can I use Regular Expressions for this ?
Any more information will be highly appreciated
Thanks
Hi, some more info will have helped point you to either the String class or the regex package, if it's fairly basic stuff then go have a look at the String class, in fact look anyway, methods like replace/replaceFirst/replaceAll specifically, there's also matches and regionMatches that may be of use.
If String is lacking move on to the regex package