public static final Function<String,String> replaceFirst(final String regex, final String replacement) {
        return new Replace(regex, replacement, ReplaceType.FIRST);
    }
public static final Function < String , String > replaceFirst ( final String regex , final String replacement ) { return new Replace ( regex , replacement , ReplaceType . FIRST ) ; }
<p>
Replaces in the target String the first substring matching the specified regular expression
with the specified replacement String.
</p>
<p>
Regular expressions must conform to the <tt>java.util.regex.Pattern</tt> format.
</p>

@param regex the regular expression to match against
@param replacement the replacement string
@return the resulting String