Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findreplace
#1
Big Grin 
Hi,
I hope to use findreplace to replace "<Entry....     >" with ""

<Entry LibID267631 Time1614396717>infringement
<Entry LibID563049 Time1614521006>raucous
<Entry LibID605280 Time1614522648>sensational
<Entry LibID649399 Time1614415629>supervisory
<Entry LibID654417 Time1614413372>tactic


my goal

infringement
raucous
sensational
supervisory
tactic


However, I cannot use the wildcard within findreplace....
(x) findreplace("<*>" "")

_[the macro]______________________________________________

_s="<Entry LibID267631 Time1614396717>infringement[]<Entry LibID563049 Time1614521006>raucous[]<Entry LibID605280 Time1614522648>sensational[]<Entry LibID649399 Time1614415629>supervisory[]<Entry LibID654417 Time1614413372>tactic[]"

out _s

_______________________________________________



i cannot solve it...

Please help.
Thanks ^^
#2
instead of findreplace use replacerx
Code:
Copy      Help
_s="<Entry LibID267631 Time1614396717>infringement[]<Entry LibID563049 Time1614521006>raucous[]<Entry LibID605280 Time1614522648>sensational[]<Entry LibID649399 Time1614415629>supervisory[]<Entry LibID654417 Time1614413372>tactic[]"
_s.replacerx("\<.+\>" "")
out _s.rtrim;;removes empty line at the end of the string
;or
;out _s

outputs

infringement
raucous
sensational
supervisory
tactic
#3
Thanks.  Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)