I want to find all the files which uses <Button>
component with className props in Visual studio editor.
Tried this regex <Button.*className.*>
. It works partially. It didn't match the new line case. Kindly, check attached screenshot.
Last line button component didn't match. Because, props entered in a new line. I tried \n
. It didn't work..