Hi qweewq11,
Saying that you don't want a VI is quite confusing here. Are you looking for a LabVIEW solution or a non-LabVIEW solution ?
If you want to go with LabVIEW, just follow the recommandations of crossrulz and you should go in the right direction.
If you are looking for a non-LabVIEW solution, there are languages more suited for text processing, like Perl. But then you are not on the right forum ;-)
In any case, the keyword here will be the regular expression, just as Jeff suggested above ! For LabVIEW, be sure to check the "Match Regular Expression" function.
Kind regards,