Looking for a way to write vertical text in HTML using Java?

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 />");
}
}

0
Your rating: None

Share or save this page

Share this

View LotsOfBiz.com Stats

LinkShare_125x125ButtonV2

Custom Search