Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular expression help
#5
try this also
s.replacerx("\<\>|\<(.+?)\>" "")

Code:
Copy      Help
str s=
;<> 1. 91. 9. 11<abc> 02-02-2015 <c 8388608>TAM 24.08</c>
;;;2. 5. 91.<This is a full sentence.> 1 04-02-2015 <c 0>LOG 50.00 </c>
;;;3. 5. 92. 1 06-02-2015 <c 0>LOG 20.00 </c>
;;;4.<hij> 1. 11. 2 09-02-2015 <c 0>LOG 1,050.07</c><k><l><>


s.replacerx("\<\>|\<(.+?)\>" "")
out s


output
1. 91. 9. 11 02-02-2015 TAM 24.08
2. 5. 91. 1 04-02-2015 LOG 50.00
3. 5. 92. 1 06-02-2015 LOG 20.00
4. 1. 11. 2 09-02-2015 LOG 1,050.07


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)