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: N Kando
Subject: [Octave-bug-tracker] [bug #60157] save() expressive filtering when using brackets [ ] does not appear to work.
Date: Mon, 8 Mar 2021 10:53:19 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36

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

[comment #7 comment #7:]
> You could use the following regular expression:
> 
> save('filename.mat', who('-regexp', '^((?!\bans\b|\bcat\b).*)$'){:})
> 

Oh.

I was not aware that {:} expansion could be used to place a cell in save(). I
had only tried including cells without that and assumed they were not
compatible.

Request to mention or include your example of this along with a `see also`
reference to `who()`, as the two functions work incredibly well together.


save('filename.mat', who('-regexp','.'){:})


    _______________________________________________________

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]