Regex matching now happens in a background thread.
This should improve performance on slower computers, and prevent the
program from locking up on large inputs.
This feature still needs a lot of polish.