Parsing strings, HTML, XML, etc. slow no matter what language you use.
There are many free components for your problem, so the cost of the tool is not a problem.
Parsing lines and screen scripting is one of those problems where your understanding of parsing requirements is constantly changing and takes a long time to stabilize. Therefore, you need to write software to clean the screen, try it, fail and learn, and you will need to do it quickly.
Your best bet anyway will be Perl and Ruby. Perl is legendary for parsing strings. Ruby is good too, and it has a library for cleaning the screen, for example ( scrAPI ).
The business case for Perl or Ruby is low cost (free tools) and significantly reduces development time. Using a scripting language allows you to quickly make and check changes to your cleaning software until you fix it. If you can go from code change to test in 10 minutes using C / C ++, you can do the same with Perl / Ruby in about a minute. Long-term, which can lead to cost savings of 50%.
source share