[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with regexprep
From: |
Richard Crozier |
Subject: |
Re: help with regexprep |
Date: |
Thu, 21 May 2015 08:16:39 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 21/05/15 05:33, rik wrote:
5/20/15
I'm trying to determine which escape sequences Matlab processes for regular
expressions. Could someone run the following and report back the results?
diary on
regexprep (',', ',', '*')
regexprep ('\x2C', ',', '*')
regexprep (',', '\x2C', '*')
regexprep (',', ',', '\x2A')
regexprep ('\x{2C}', ',', '*')
regexprep (',', '\x{2C}', '*')
regexprep (',', ',', '\x{2A}')
regexprep (',', '\o54', '*')
regexprep (',', '\o{54}', '*')
diary off
This leave things in the file diary for upload.
--Rik
See below, also attached:
>> diary on
regexprep (',', ',', '*')
regexprep ('\x2C', ',', '*')
regexprep (',', '\x2C', '*')
regexprep (',', ',', '\x2A')
regexprep ('\x{2C}', ',', '*')
regexprep (',', '\x{2C}', '*')
regexprep (',', ',', '\x{2A}')
regexprep (',', '\o54', '*')
regexprep (',', '\o{54}', '*')
diary off
ans =
*
ans =
\x2C
ans =
*
ans =
*
ans =
\x{2C}
ans =
*
ans =
*
ans =
*
ans =
*
>>
Richard
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
diary
Description: Text document