This is probably a rather simple question to solve, butI'm trying to use a Regex on a string and have it remove any src attributes that contain dimensions, like this:
src="/some/path/here_000x000.jpg"
so
<img src="/some/path/here_000x000.jpg"/>
would become
<img />
after processing.
From researching I found that
\d{1,5}x\d{1,5}
finds dimensions, and
src\s*=\s*"(.+?)"
will find a src attribute, but how can I combine these both and have some simple c# code whereby all matching patterns in a given string are removed (ie. replaced with '')?
Many thanks