daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var texto= "//portal.sidiv.registrocivil.cl/docstatus?RUN=123456-4&type=CEDULA&serial=108538812&mrz=108538898884123132412311";
  2. $("#probar").html(texto.match(/docstatus?(.*?)&type/));
  3.  
  4. <div id="probar"></div>
  5.    
  6. RUN=123456-4
  7.    
  8. var texto= "//portal.sidiv.registrocivil.cl/docstatus?RUN=123456-4&type=CEDULA&serial=108538812&mrz=108538898884123132412311";
  9.  
  10. var sign = texto.indexOf("?") + 1;
  11. var and = texto.indexOf("&type");
  12.    
  13. $("#probar").html(texto.substring(sign,and));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top