private static String getRegexp ( SedArguments args ) { if ( args . isRegexpSet ( ) ) { return args . getRegexp ( ) ; } if ( args . isString1Set ( ) ) { return args . getString1 ( ) ; } return "" ; }
Returns the regexp operand from args either called regexp or string1 . If none of the two is set an empty string is returned .