private static int getButton(String mouseString) {

		Matcher buttonMatcher = BUTTON_PATTERN.matcher(mouseString);
		if (buttonMatcher.find()) {
			String numberString = buttonMatcher.group(1);
			try {
				int intValue = Integer.parseInt(numberString);
				if (intValue > 0) {
					return intValue;
				}
			}
			catch (NumberFormatException e) {
				Msg.error(MouseBinding.class, "Unable to parse button number %s in text %s"
						.formatted(numberString, mouseString));
			}
		}

		return -1;
	}
Creates a mouse binding from the given string.  The string is expected to be of the form:
{@code Ctrl+Button1}, which is the form of the text generated by {@link #getDisplayText()}.

@param mouseString the mouse string
@return the mouse binding or null if an invalid string was given
Ghidra/Framework/Gui/src/main/java/gui/event/MouseBinding.java