octave-maintainers
[Top][All Lists]
Advanced

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

Regexp help


From: Rik
Subject: Regexp help
Date: Fri, 05 Jul 2013 13:28:16 -0700

7/5/13

Can someone with Matlab access run the following code?

[TE, T, NM, SP] = regexp ('abc', '(?<name1>\w+)(?<junk> )?(?<name1>\w+)',
'tokenExtents', 'tokens', 'names', 'split')
celldisp (TE)
celldisp (T)

I want to know how they handle duplicate named patterns when there is no
alternation.  I'm hoping they haven't gone overboard and returned a struct
array for NM.

--Rik


reply via email to

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