Hi,
Does any one know how to replace all { with \{
I tried String.replaceAll("{","\{") only to find exceptions since { is part of the regular _expression_ syntax stuff.
What i want to achieve with this is to replace all {,(,[,] which is part of a String with \{,\(,\[,\]
e.g "if()"
will be converted to if\(\)
I need this for a Lexical Analyser
Get amazing travel prices for air and hotel in one click on Yahoo! FareChase
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---
