Recently I was advised by my manager not to depend much on Regex as it has lot of disadvantages. When I tried to learn more , I hear that it has issues like regex can result in memory leak as some objects continue to hang on strings references even after use ?
.NET RegEx "Memory Leak" investigation
So it it right to say that reg-ex causes memory overheads and should not be used if you have other options ? Is there any other disadvantaged to reg-ex (apart from it being tough to learn :) )
P.S I am developing an application (c#.net) similar to web crawler which extracts all hrefs and some other information like title, meta tags etc..I have the option of using HTML Agility pack instead of reg-ex.