Home > Mobile >  Select specific class all values in Visual Studio Code
Select specific class all values in Visual Studio Code

Time:02-19

I have hundred lines of codes. I want to copy all values from class "title". Is there a way to do it?

For example :
<span ><span dir="auto" title="SAMPLE1" >
<span dir="auto" title="SAMPLE2" >
<span ><span dir="auto" title="SAMPLE3" >

I want the output of SAMPLE1 , SAMPLE2, and SAMPLE3

Its a HTML code.

CodePudding user response:

  1. Open find box
  2. do a regex search for (?<=title=")[^"]
  3. With focus still in find box press Alt Enter
  4. Ctrl C
  5. Esc
  6. go to location where you want the texts
  7. Ctrl V
  • Related