fork(16) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.util.regex.*;
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. String input_str = "\"'some string'\"";
  10. String result = input_str.replaceAll("^[\"']+|[\"']+$", "");
  11. System.out.println(result);
  12. }
  13. }
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
some string