“Saldo: 305.78 CUP. Datos: 30.99 GB + 5.24 GB LTE. Voz: 00:42:08.
SMS: 212. Linea activa hasta 31-01-26 vence 02-03-26.”
Stored in a global variable, I want to extract each number separately (including date) to show it in a widget so that it looks something like this (Not exactly):
-Saldo: 305.78 CUP
-Datos: 30.99 GB
-LTE: 5.24 GB
-Voz: 42:08 min (if value were ie: 01:20:10 then:
Voz: 01:20:10 H)
-SMS: 212
-Activa: 31/01/26
-Vence: 02/03/26
Here are complicated regex’s allowing you to add alternatives (either this|or this) in the find. Unfortunately there’s no easy way to add alternatives to the replace. Each line is handled separately so there is a lot of duplication. This assumes the source data will always follow the same structure. It would be good to get examples over time to handle any differences in the source data.