Sublime Forum

Leave only the text that matches the pattern


Hello! So I want to do the following.
Let’s say that I have a piece of code with similar lines like in the example below:

<lktelikladjedt lkteliklCaunt=“46” dhapPidkup=“dhap_waad_4” splitGlaup=“split_daakdkse_smkll” id=“T_lESEklCH_SITE_daaKCkSE_dlaKEN_2_FLIP”

I want delete everything that doesn’t match the id="…"(the last attribute) pattern in all the lines in my file. Is there a smooth way to do this in sublime?