02-23-2015, 08:39 PM
The following macro is used for removing <...> code characters form a string :
Function tempf02
My question is : Is it possible to combine the findreplace and replacerx statements into one replacerx? I tried, but I failed, as it happens usually with regular expressions.
Any help will be much appreciated.
Function tempf02
str s=
;<> 1. 91. 9. 11 02-02-2015 <c 8388608>TAM 24.08</c>
;;;2. 5. 91. 1 04-02-2015 <c 0>LOG 50.00 </c>
;;;3. 5. 92. 1 06-02-2015 <c 0>LOG 20.00 </c>
;;;4. 1. 11. 2 09-02-2015 <c 0>LOG 1,050.07</c>
s.findreplace("<>" "")
s.replacerx("<.*>" "")
out s
My question is : Is it possible to combine the findreplace and replacerx statements into one replacerx? I tried, but I failed, as it happens usually with regular expressions.
Any help will be much appreciated.