Hi All!
I will avoid text based solutions but after looking at my code, I thought I may get a chance to learn a better way to do this.
Problem:
In LV 8.6 there is an issue where a particular "node' in a VRML file will result in LV crashing if I attempt to open a file that contained that node.
Solution:
Wirte code to check the file and remove the bad "node" beforea attempting to open it.
SO this code works but screams "Could this be done better using Reg Expresions?"
I think the picture tells the rest of the story.
NOTE: The non-visalbe cases just pass the wires through.
SO share your thoughts please.
Ben
已解决! 转到解答。
I'm not the regex guy, but this topic looks like it should at least be cross-referenced in the "Regular Expresions Board" topic.
http://forums.ni.com/t5/BreakPoint/Regular-Expressions-Board/td-p/1187799
I just tweeted about this topic because of a post on LAVA regarding using regex to process HTML. It seems regex is popular lately...
Read this regex like:
My Rube reduced to 22 characters...
Where is that embarased emoticon?
Ben
First, it is great that you are going to use Search and Replace with Regular Expression selected and not some string gymnastics to remove those sections.
<plug type="shameless">
Second, if you are looking to hone your regex skills without having to memorize a bunch of special codes, check out the example I posted for the current contest.
http://decibel.ni.com/content/docs/DOC-13698
</plug>