src/main/java/jenkins/branch/buildstrategies/basic/NamedBranchBuildStrategyImpl.java
/**
             * Form validation for the regular expression.
             *
             * @param value the regular expression.
             * @return the validation results.
             */
Form validation for the regular expression.
@param value the regular expression.
@return the validation results.
Form validation for the regular expression . @param value the regular expression . @return the validation results .
@Restricted(NoExternalUse.class) 
            public FormValidation doCheckRegex(@QueryParameter String value) {
                try {
                    Pattern.compile(value);
                    return FormValidation.ok();
                } catch (PatternSyntaxException e) {
                    return FormValidation.error(e.getMessage());
                }
            }
@ Restricted ( NoExternalUse . class ) public FormValidation doCheckRegex ( @ QueryParameter String value ) { try { Pattern . compile ( value ) ; return FormValidation . ok ( ) ; } catch ( PatternSyntaxException e ) { return FormValidation . error ( e . getMessage ( ) ) ; } }
Form validation for the regular expression.
Form validation for the regular expression .
// stapler