Adding regex support to search bar in dev tools console
This patch extends dev tools console search with support for regular
expressions. UI wise I added a checkbox labeled "Regex" after the console
search input field, which toggles regex support when searching and also
triggers the search. When regex is enabled, console search translates the query
I implemented the regex checkbox by adding a boolean parameter to
WebInspector.SearchableView that determines whether the view should feature
such a checkbox. I'm not 100% sure if this was the best way of doing this,
since it's only relevant to the ConsoleView ATM, but it was the simplest way.
I'm concerned about two empty table cells between the search input field
and the Regex checkbox, but in fairness, these were already present prior to
Finally, I'm not sure how to write tests for my changes, even though I'd like to.