Looking for a way to write vertical text in HTML using Java?
Submitted by eMarv on Thu, 06/04/2009 - 02:07
Thanks to myRegexTester
I found this. It works like a charm!
import java.util.regex.Pattern;
import java.util.regex.Matcher;
class Module1{
public static void main(String[] asd){
String sourcestring = "source string to match with pattern";
Pattern re = Pattern.compile("(.)",Pattern.CASE_INSENSITIVE);
Matcher m = re.matcher(sourcestring);
String result = m.replaceAll("$1<br />");
}
}
Recent blog posts
- A guide to Kitchen Bins
- Forex is Short term and Fruitful business, find out how
- Khartoum, a worth Visiting city in Sudan
- Some Facts about Door hinges
- Discounted telecommunications services
- Dubai welcomes people from around the globe
- Installing door furniture is not just easy but fun to do!
- Dubai, the perfect place to visit, less hassle and more fun!
- How to manage with Forex and a broker, tips on how to get started!
- Door Furniture is what needs to keep in mind while constructing the dream home!






