[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38778] regexp('a', '\<\w') != 1
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #38778] regexp('a', '\<\w') != 1 |
Date: |
Sat, 20 Apr 2013 19:30:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31 |
Update of bug #38778 (project octave):
Status: Confirmed => Patch Submitted
Summary: regexp('a', '\<\w') != 1 => regexp('a', '<w') != 1
_______________________________________________________
Follow-up Comment #3:
Right, because \b matches a backspace character for compatibility with
Matlab:
octave:1> regexp (char (8), '\b')
ans = 1
The attached change makes \< and \> both work like \b. It's not ideal, but
that may be the best we can do with PCRE. Do you know any way we can emulate
\< and \> properly with PCRE?
(file #27914)
_______________________________________________________
Additional Item Attachment:
File name: bug38778.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38778>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/