2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
11 * This implements the $& element of the second argument to Regex.
\r
13 * @see com.stevesoft.pat.ReplaceRule
\r
15 public final class AmpersandRule extends ReplaceRule
\r
17 public AmpersandRule()
\r
21 public void apply(StringBufferLike sb, RegRes res)
\r
23 sb.appendStr(res.stringMatched());
\r
26 public String toString1()
\r