htmlgoogle-chromewebbrowserweb-inspector

How to find multiple keywords in source file from inspect element?


I'm currently learning how to use web developer tools. So as a part of it I'm trying to find some multiple keywords at the search box which appears after pressing ctrl + F

enter image description here

My question is How can I apply multiple search filters at a time uisng find. Like If i want to find more than 2 keywords in a source what is the best way to do it.

I've tried using regular expressions like so(I'm pretty sure syntax is wrong)

'Keyword1' & 'Keyword2'

Also tried

'Keyword1' | 'Keyword2'

Also tried

'Keyword1' or 'Keyword2'

But No use. I'm I missing anything here? I know we can use regular expressions but I'm looking for syntax to search multiple keywords. I'm pretty sure I've once used it a while ago . I don't remember exact expression to do so..


Solution

  • Using regex search, you can do: ^(?=.*foo)(?=.*bar).*$.

    Source: https://stackoverflow.com/a/37692545/6911703