hi, i have a problem with regular expressions: i'm not very good in using them. i want to determine the comment string in a gambas comment with gb.pcre and been sitting down for 3 hours now, totally frustrated... i thought, i have to search for the first ' apostrophe from the left which isn't between "". i have experimented with the ugliest things but nothing worked properly. i used these lines to test:
Print "'" '"'" Print "text" 'comment and the line of RegExp.Compile(???) itself of course, they should give "'" comment (nothing) i got a solution that matched the first two ones correctly but no chance for the regexp itself in line 3 (i always got something after the apostrophe in the regexp)... i didn't get very far without getting wrong results, so i think there's no need to post my tries i would be very glad if someone more experienced could help me. regards, tobi ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
