2025 m. gegužės 6 d., antradienis

Visual studio code regex search

If we want to find meniu, that has has some particular text

For example

<openign tag
some text
name="anchor"

 
It requires shift+Enter at the end to work

<menuitem\b[\s\S]*?\bname="My Timesheets[^"]*"

<menuitem\b[\s\S]*?\bgroups="group_hr_timesheet[^"]*"

<menuitem\b[\s\S]*?\bname="Timesheets[^"]*"