07-15-2010 05:40 AM
07-15-2010 09:54 AM
I am sure the logic of the regex is sound, and it is too early on the West Coast to wrap my head around it anyway. What I find makes them a bit more readable (and it could just be me) is the use of character classes:
I would slightly modify the regex as follows:
((: *)*[\d ]{0,1}(1(\D*)6))|(1( *\w*\s\d* *: *)6)
\d is digit [0-9]
\D is everything except [0-9]
\w is a word character
\s is whitespace
07-15-2010 09:57 AM - edited 07-15-2010 09:57 AM
I can't be sure, but I think you guys are cursing at each other. ![]()
07-15-2010 10:00 AM
07-15-2010 11:19 AM
Hate to break it to you guys, but I decided to go with string parsing rather than regexp. This is actually for C++ not LabVIEW but I figured for something so generic, this would be a good place to ask. Solutions come quickly here! Either way, the solutions were interesting, well thought out, and well explained. Kudos to come when I have some free time.
07-15-2010 11:28 AM
@for(imstuck) wrote:
Hate to break it to you guys, but I decided to go with string parsing rather than regexp.
\w[a-z@#]+ You! ![]()
07-15-2010 12:06 PM
I posted my last version, along with an explanation of its regexp, over here.