fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. String pegaValorName = "<td><input type=\"radio\" name=\"pg4\" value=\"NAO\" /></td>";
  10. String partes[] = pegaValorName.split("name=\"");
  11. partes = partes[1].split("\"");
  12. String valorName = partes[0];
  13. System.out.println(valorName);
  14. }
  15. }
Success #stdin #stdout 0.11s 320256KB
stdin
Standard input is empty
stdout
pg4