1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Add backreferencing "test" :(

This commit is contained in:
Robert Krimen
2012-10-20 13:57:13 -07:00
parent cd4f36ce98
commit 2390419e97
3 changed files with 8 additions and 4 deletions

View File

@@ -97,9 +97,10 @@ For more information: http://github.com/robertkrimen/otto/tree/master/underscore
Go translates JavaScript-style regular expressions into something that is regexp package compatible.
Unfortunately, JavaScript has positive and negative lookahead, which is not supported by Go's re2-like engine: https://code.google.com/p/re2/wiki/Syntax
Unfortunately, JavaScript has positive lookahead, negative lookahead, and backreferencing,
all of which are not supported by Go's re2-like engine: https://code.google.com/p/re2/wiki/Syntax
A brief discussion of this limitation: "Regexp (?!re)" https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/7qgSDWPIh_E
A brief discussion of these limitations: "Regexp (?!re)" https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/7qgSDWPIh_E
### UTF-8 UTF-16