fixed a minor bug in extractAllRegExps
refactored InputPanel to simplify code
Closed branch.