Issue 3256 in pharo: matchesRegex on colon

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3256 in pharo: matchesRegex on colon

pharo
Status: New
Owner: ----

New issue 3256 by [hidden email]: matchesRegex on colon
http://code.google.com/p/pharo/issues/detail?id=3256


Pharo image:  Pharo-core
Pharo core version: 1.2-12146
Virtual machine used: Squeak 4.2.5beta1U for mac

If you evaluate:

'whatever' matchesRegex: ':'

it rises an error. if I escape the colon the error disappears, but is it  
right? I think it's a sort of coupling with method parsing.
Tx
  Davide


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3256 in pharo: matchesRegex on colon

pharo

Comment #1 on issue 3256 by aplantec: matchesRegex on colon
http://code.google.com/p/pharo/issues/detail?id=3256

':' is a special char because of character classes encoding ([:alnum:] as  
example.
So, you have to escape it ('\:').
I guess this is not an issue.