cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract Information

Good morning, I need your support with this DPL/DQL text extraction. I need to parse it

Samples

/productos/creditos/en-linea

/productos/creditos/libranza

/productos/cdts

/productos/cuentas-de-ahorro/abrir-cuenta-de-ahorros/abrir-cuenta-de-ahorros-en-linea-flexidigital

 

Result

FILED1FIEDL2FILED3FILED4
productoscreditosen-lineaNULL
productoscreditoslibranzaNULL
productoscdtsNULLNULL
productoscuentas-de-ahorroabrir-cuenta-de-ahorrosabrir-cuenta-de-ahorros-en-linea-flexidigital

 

I need to extract the information that is within "/" and organize it into new columns. If a field is missing, it should display null. It is very dynamic.

 

|parse Request_Path,

1 REPLY 1

This is the answer:| parse `Request_Path`, "DATA [a-zA-Z.-]+:Area"
| parse `Request_Path`, "DATA '/'[ a-zA-Z.-]+:Tipo_de_Producto"
| parse `Request_Path`, "DATA '/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+:Solucion_Financiera"
| parse `Request_Path`, "DATA '/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+:Producto_Especializado"
| parse `Request_Path`, "DATA '/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+:Subproducto1 "
| parse `Request_Path`, "DATA '/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+'/'[ a-zA-Z.-]+:Subproducto2"

Featured Posts