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

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

[Octave-bug-tracker] [bug #38778] regexp('a', '\<\w') != 1


From: Rik
Subject: [Octave-bug-tracker] [bug #38778] regexp('a', '\<\w') != 1
Date: Mon, 08 Jul 2013 00:59:46 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Update of bug #38778 (project octave):

                  Status:         Patch Submitted => Fixed                  
             Open/Closed:                    Open => Closed                 
                 Summary: regexp('a', '\<\w') != 1 => regexp('a', '<w') != 1 

    _______________________________________________________

Follow-up Comment #7:

I committed your first patch.  It is the simpler fix and in practice is
unlikely to ever be a problem.  Users who are constructing patters, like
'\>\w', where there would be a difference don't understand regular
expressions.

I also changed the documentation to remove reference to '\b' which is the
backspace character.

If there is ever a need, we could use lookahead assertions to exactly match
'\<' and '\>'.

Matlab  =>   PCRE


\<   =>   \b(?=\w)
\>   =>   \b(?<=\w)



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38778>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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