fork download
  1. import java.util.*;
  2. import java.util.regex.*;
  3. import java.lang.*;
  4. import java.io.*;
  5.  
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. String s = "{\\pos(830,575)}{\\hide18}In the promise you made at all";
  11. System.out.println(s.replaceAll("\\{\\\\hide[^{}]*}", ""));
  12. }
  13. }
Success #stdin #stdout 0.08s 33708KB
stdin
Standard input is empty
stdout
{\pos(830,575)}In the promise you made at all