--- /dev/null
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License. Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+// -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+\r
+/** The apply(StringBufferLike sb,RegRes res) method of this derivation\r
+ of ReplaceRule appends the contents of res.left() to the StringBuffer\r
+ sb.\r
+ @see com.stevesoft.pat.ReplaceRule\r
+ */\r
+public class LeftRule extends ReplaceRule {\r
+ public LeftRule() {}\r
+ public void apply(StringBufferLike sb,RegRes res) {\r
+ sb.append(res.left());\r
+ }\r
+ public String toString1() { return "$`"; }\r
+}\r