View Full Version : Regex help please

09-29-2006, 10:38 PM
Hey everyone. I've been working on my ultraedit syntax highlighter and I'm stuck so I turn to the community for regex help. Basically it has a line that allows you to specific the Regular Expression that will be used to determine if something should be highlighted.

/Function String = "%[ ^t]++[a-z]+[ ^t]+^([A-Za-z_]+^)[ ^t]++(*)[~;]"

is the line to be exact. This isn't my line of code but I do have some experience with regex. For some reason this line recognizes spaces before a line but not a tab. Any suggestions?

09-30-2006, 03:49 AM
That's exactly the same format I use in Ultraedit. I had to go to the Ultraedit forums to get help for mine as I had no experience at all with regex. The main guy that answers the posts there is an absolute savant with this stuff. You can find the Syntax Highlighting section of the Ultraedite forums here (http://www.ultraedit.com/index.php?name=Forums&file=viewforum&f=9). Hope that helps.

09-30-2006, 04:35 PM
Thanks, I'm posting there now and hopefully if I get a response I will update this thread.