fork(27) download
  1. class Ideone
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. String mydata = "some string with 'the data i want' inside";
  6. String dataIWant = mydata.split("'")[1];
  7. System.out.println("dataIWant: " + dataIWant);
  8. }
  9. }
Success #stdin #stdout 0.03s 4386816KB
stdin
Standard input is empty
stdout
dataIWant: the data i want