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