JRowe Posted October 17, 2009 Share Posted October 17, 2009 I'm trying to select comments and just comments,without getting anything else, and deliberately exclude "<" and ">".It's causing undesired behavior in my code highlighting widget. I'm using this as a pattern: /((?!\<);.*)/gm I'm not sure how, here's an example of what I don't want: http://www.autoit.me/code-posting-test It should display as in scite, but after the include and any greater than or less than tags, it think's there's been a comment. I'm kind of puzzled at this point. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
JRowe Posted October 17, 2009 Author Share Posted October 17, 2009 Slowly becoming less puzzled, although now the only thing wrong is that I can't have a comment at the top of the code. Assuming that it's the only thing wrong, I think I got it fixed.([^(lt;.*)];.*)/gm [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 17, 2009 Moderators Share Posted October 17, 2009 What happens when the semi colon is in a valid string? eg.Send("!;") ; This is a comment Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JRowe Posted October 17, 2009 Author Share Posted October 17, 2009 It appears to break. looks like I have some conditionals to whip up. You'd think that wordpress had an easy geshi widget or something. Everything I've found so far is either so complicated as to be nearly worthless compared to formatting by hand, or you have to build it yourself. Anyway, when this is done I'll post it so other people can use the syntax highlighter. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now