Academic Work Personal
|
Java /
Split a String into a Java Array of Strings divided by a Regular Expression
import java.util.regex.Pattern; public class Split { public static void main(String[] args) { String[] x = Pattern.compile("ian").split("the darwinian devonian explodian chicken"); for (int i=0; i<x.length; i++) { System.out.println(i + " \"" + x[i] + "\""); } } } This tip is from http://www.java2s.com/Code/Java/Regular-Expressions/SplitaStringintoaJavaArrayofStringsdividedbyanRegularExpressions.htm . |
anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows Blogs and Dev. * Ubuntu Incident Places Debrecen | France | Hungary | Montreal | Nancy Notes Hobby Projects * Jabba's Codes Quick Links [ edit ] |