public void highlightInputs() {
		try {
			String workingText = this.tpRegEx.getText();
			// Remove newlines and tabs
			workingText = Pattern.compile("\\n+|\\t+").matcher(workingText).replaceAll("");

			// highlight group with carret
			// //BUG #1
			List<Integer> currentGroupPos = getBracketGroups(this.tpRegEx);

			if (currentGroupPos != null) {
				if (currentGroupPos.size() > 0) {
					this.tpRegEx.getStyledDocument().setCharacterAttributes(currentGroupPos.get(0), 1, Colors.HIGHLIGHT_BLUE,
							true);
					this.tpRegEx.getStyledDocument().setCharacterAttributes(currentGroupPos.get(1), 1, Colors.HIGHLIGHT_BLUE,
							true);
					this.tpRegEx.getStyledDocument().setCharacterAttributes(currentGroupPos.get(0) + 1,
							currentGroupPos.get(1) - currentGroupPos.get(0) - 1, Colors.GREY, true);
				}
			}

			// check regex on spaces
			Matcher spaceMatcher = Pattern.compile("\u0020+").matcher(this.tpRegEx.getText());
			// Highlight Spaces in RegEx
			while (spaceMatcher.find()) {
				this.tpRegEx.getStyledDocument().setCharacterAttributes(spaceMatcher.start(),
						spaceMatcher.end() - spaceMatcher.start(), Colors.WARNING, true);
			}

			// check regex on tabs and new lines
			Matcher tabMatcher = Pattern.compile("\\t+|\\n+").matcher(this.tpRegEx.getText());
			// Hilight tabs and new lines in RegEx
			while (tabMatcher.find()) {
				this.tpRegEx.getStyledDocument().setCharacterAttributes(tabMatcher.start(),
						tabMatcher.end() - tabMatcher.start(), Colors.TAB, true);
			}

			// Compile input to RegEx matcher
			Pattern regEx = Pattern.compile(workingText);
			Matcher regExMatcher = regEx.matcher(this.tpSubject.getText());

			// Highlight Subject text
			while (regExMatcher.find()) {
				this.tpSubject.getStyledDocument().setCharacterAttributes(regExMatcher.start(),
						regExMatcher.end() - regExMatcher.start(), Colors.HIGHLIGHT_YELLOW, true);
			}
		} catch (PatternSyntaxException e) {
			// log.error("[ERROR] " + e);
			this.tpRegEx.setToolTipText(e.getDescription() + " at column " + e.getIndex());
			this.tpRegEx.getStyledDocument().setCharacterAttributes(getErrorPosition(e.getIndex(), this.tpRegEx.getText()),
					1, Colors.ERROR, true);
		}
	}