octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60157] save() expressive filtering when using


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60157] save() expressive filtering when using brackets [ ] does not appear to work.
Date: Mon, 8 Mar 2021 10:36:55 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36 Edg/89.0.774.45

Follow-up Comment #7, bug #60157 (project octave):

You could combine `who` with `save`.
For your example, you could use the following regular expression:

save('filename.mat', who('-regexp', '^((?!\bans\b|\bcat\b).*)$'){:})


If you need something like this regularly, you could probably write a function
that creates the regular expression automatically from a cell string.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60157>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]