newRPL: Adding string processing commands?
|
09-21-2016, 04:32 PM
Post: #9
|
|||
|
|||
RE: newRPL: Adding string processing commands?
(09-21-2016 02:01 PM)Vtile Wrote:(09-21-2016 11:36 AM)emece67 Wrote: A pair of functions split & rsplit working a la Python. I'd say no regular expressions. They are almost impossible to understand by humans without a reference manual in hand, and would only make RPL even harder to read. I just learned about split/rsplit. I think the proposed NTOKENS, NTHTOKEN and NTHTOKENPOS cover the same functionality without explicitly creating a list with all tokens. If such list was desired, it's not hard to implement in RPL: "STR" "sep" SPLIT -> { "tok1" ... "tokN" } can easily be implemented as: Code:
Search is already given with POS, and we are proposing to complement it with RPOS, NPOS and NRPOS per post above. In general, I agree on a small subset of powerful commands rather than a global do-it-all engine like regexp. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)