MysorePak Posted April 29, 2015 Report Posted April 29, 2015 Bhayya okka document lo text ela vundhi [[abc]] so adhi findout chesi replace with abc , eppudu ala okka 10 places lo vundhi with different values so i used replace(Pattern.compile("/[/[(.*?)/]/]")) kani ee pattern.compile pani chesthaledhu to find out the text.... so aa pattern ne find out cheyale ante ela chesthamu ?
kiran karthik Posted April 29, 2015 Report Posted April 29, 2015 try with backslash Pattern.compile("\[\[(.*?)\]\]") it won't compile bcz of escape chars so Pattern.compile("\\[\\[(.*?)\\]\\]") will work
MysorePak Posted April 29, 2015 Author Report Posted April 29, 2015 Bhayya appudu adhi ela print avuthundhi \[\[(.*?)\]\] try with backslash Pattern.compile("\[\[(.*?)\]\]") it won't compile bcz of escape chars so Pattern.compile("\\[\\[(.*?)\\]\\]") will work
Recommended Posts