Skip to content

Instantly share code, notes, and snippets.

@z3a
Created February 1, 2013 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z3a/4688236 to your computer and use it in GitHub Desktop.
Save z3a/4688236 to your computer and use it in GitHub Desktop.
String response = "Hello 1,2345 10 lorem ipsum 12 dol 34 sit 093 at bla 8749";
void setup(){
String[][] test = matchAll(response, "([1-4])");
if (test != null){
for (int i = 0; i<test.length; i++){
println("text: "+test[i][1]);
}
} else {
println("null");
}
}
void draw(){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment