     // MARK: - IBAction
 
     @IBAction func searchPrevious(_ sender: UIBarButtonItem) {
-        searchText(withOptions: .backwards)
+        searchText(withOptions: [.regularExpression, .backwards])
     }
     
     @IBAction func searchNext(_ sender: UIBarButtonItem) {
-        searchText(withOptions: .regularExpression)
+        searchText(withOptions: [.regularExpression])
     }
     
     @IBAction func shareAction() {

            }
            if let newSelection = pdfView.document?.findString(text, fromSelection: pdfView.currentSelection, withOptions: options) {
                pdfView.go(to: newSelection)
                pdfView.setCurrentSelection(newSelection, animate: true)
            } else {
                // for workaround: clear selected if no real search results returned

            navigationController?.navigationBar.tintColor = presentingViewController?.view.tintColor
            navigationController?.toolbar.tintColor = presentingViewController?.view.tintColor
            navigationItem.searchController?.searchBar.tintColor = presentingViewController?.view.tintColor
            if navigationItem.searchController?.isActive == true, let items = navigationController?.toolbar.items {
                for item in items {
                    item.isEnabled = true
                    item.tintColor = view.tintColor
                }
            }
        }
    }
    
