ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   String Parsing : Best Methods : VBA (https://www.excelbanter.com/excel-programming/351186-string-parsing-best-methods-vba.html)

vmegha

String Parsing : Best Methods : VBA
 
Hi,

Anybody, with any advice / suggestions on what is the best methods
/practices on parsing strings. I have a really huge string, that
provides a major performance Bottleneck while reading through. Right
now I split it by a delimiter, fill it into a Variant and run through
each (shorter length) string within the Variant, and use Instr , Mid$
and Right$ while parsing out a Key, Value Pair. Any ideas, any
articles?

Thanks in Advance,
Regards,
Megha


Tom Ogilvy

String Parsing : Best Methods : VBA
 
Possibly by using regular expressions

http://support.microsoft.com/default...02&Product=vbb
HOW TO: Use Regular Expressions in Microsoft Visual Basic 6.0

--
Regards,
Tom Ogilvy



"vmegha" wrote in message
oups.com...
Hi,

Anybody, with any advice / suggestions on what is the best methods
/practices on parsing strings. I have a really huge string, that
provides a major performance Bottleneck while reading through. Right
now I split it by a delimiter, fill it into a Variant and run through
each (shorter length) string within the Variant, and use Instr , Mid$
and Right$ while parsing out a Key, Value Pair. Any ideas, any
articles?

Thanks in Advance,
Regards,
Megha





All times are GMT +1. The time now is 05:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com