User forums > General (but related to Code::Blocks)
Question about regex flavor
dmoore:
if anyone is willing to test, I've compiled Code::Blocks with this patch installed (as well as my interpreted languages plugins) at
http://prdownload.berlios.de/cbilplugin/CodeBlocks_unicode_rev3369_with_IL_plugins_Rev1.exe
as before, you must select "Use advanced regexes" in the editor settings control panel.
one thing to note, which may be different from what you might exepct, is that Advanced regex seem to be greedy even through newline characters (maybe I screwed up a setting)
bigbug:
Hello,
I've done a quick test.
--- Quote from: dmoore ---one thing to note, which may be different from what you might exepct, is that Advanced regex seem to be greedy even through newline characters (maybe I screwed up a setting)
--- End quote ---
For me it works as it should. It isn't greedy through newline characters, if I use a greedy quantifier it only applies to a line. For example a search for .* finds a line and you can go through each line by pressing F3. Maybe your End-of-line-mode is CR (i. e. \r). The End-of-line-mode can be changed in the Edit menu. If it is CR (like in Mac, I think), .* matches the whole document. But it matches a line if either CR&LF or LF is used. I've tested the non-greedy search also and it works great!
Thanks! :D
dmoore:
--- Quote from: bigbug on December 13, 2006, 09:57:33 am ---Maybe your End-of-line-mode is CR (i. e. \r).
--- End quote ---
whoops! I had just switched to testing out CR mode before I checked the regex feature again. I thought something was strange... :oops:
thanks for testing bigbug
Navigation
[0] Message Index
[*] Previous page
Go to full version