diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-02 14:02:04 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-02 15:20:25 -0700 |
commit | 1475df9bedc03417708f20d94b5e3db5c80f3036 (patch) | |
tree | 6dc7e6fee60f17ce379766def8ec5b9f1918b3d5 /test/files/run/si5045.check | |
parent | 4b8c54cd9e52dbacc239d05c8149d7f249bbebab (diff) | |
download | scala-1475df9bedc03417708f20d94b5e3db5c80f3036.tar.gz scala-1475df9bedc03417708f20d94b5e3db5c80f3036.tar.bz2 scala-1475df9bedc03417708f20d94b5e3db5c80f3036.zip |
Unanchored regex extractors.
This patch is really by Lanny Ripple <lanny@spotinfluence.com>,
but I reworked it because I didn't want to put any more methods
onto String. Instead, there is a method on Regex which removes
the anchoring quality.
"""\d\d'"".r.unanchored
Diffstat (limited to 'test/files/run/si5045.check')
-rw-r--r-- | test/files/run/si5045.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/si5045.check b/test/files/run/si5045.check new file mode 100644 index 0000000000..7e9c1961b7 --- /dev/null +++ b/test/files/run/si5045.check @@ -0,0 +1,6 @@ + extract an exact match 2011-07-15 2011-07-15 + extract from middle of string 2011-07-15 2011-07-15 + extract from middle of string (P2) 2011-07-15 2011-07-15 + extract from middle of string (P3) 2011-07-15 2011-07-15 + copyright example has date Copyright 2011 Copyright 2011 + copyright example missing date No copyright No copyright |