0
I need to do a regex for an application from which I need to remove a certain combination of characters from within a string. Explaining the problem better.
I have a string that returns from the database, something like this:
EVENTDATE:10/10/2015|*EDITAR_EVENTDATE:IwCalendar|EVENTTIME_INI:12:00|EVENTTIME_END:13:00|RANKINGHC:0|ALERGIAS:0|QUAIS_ALERGIAS:|INFECCAO:0|DATA_INFEC:|SITIO:0|QUADROCLINICO:|ASPECTO:0| ...
In this string I have values like this:
*EDITAR_EVENTDATE:IwCalendar|
*EDITAR_TQT_DTULTTROCA:IwCalendar|
*EDITAR_GTT_DTULTTROCA:IwCalendar|
It’s a pattern, I need to remove everything that starts with *
and has the value IwCalendar
and the pipe |
at the end of the string, i.e., remove the sayings whose.
I need to do something generic because there are dozens of fields like this.
Already thank you for the strength!!! Good morning to all.