OiO.lk Blog HTML regex for matching plain text in html works in small files but crashes in larger files in vscode
HTML

regex for matching plain text in html works in small files but crashes in larger files in vscode


Im using this regex-

>\s?([a-zA-Z0-9$&+,:;=?@#|'.\-^*()%!]+\s[a-zA-Z0-9$&+,:;=?@#|'.\-^*()%!]+)+\s?<

seem to do exactly what i want but obviously very inefficient and ugly.

I’m not trying to parse html so don’t come at me with that.

For now will be used to search stuff in patch files using vscode.

how can i improve this?



You need to sign in to view this answers

Exit mobile version