Changed the find logic using the regular expression instead of the logic in RSyntaxTextArea library.