Monday, March 11, 2024

Visual Studio ( or VS Code) strip all attributes from html tags

 This is a very simple shortcut, find and replace using following regex

Find - <(table|tr|td|p|div|span)[\S\s]*?\n?>

Replace - <$1>

No comments:

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...