User forums > General (but related to Code::Blocks)

Unhandled exception during search and replace (regex)

(1/1)

dushara:
Hi,

Hope this is the right place for this. I've got a large (~8M) text file ~500K  lines with the following format:


--- Code: ---Time [s],Value,Parity Error,Framing Error
-3.6e-005,0x78,,
5.2e-005,0x6D,,
0.000138,0x61,,
0.000224,0x0D,,
0.002018,0x2A,,
0.002106,0x66,,
0.002192,0x78,,
0.002278,0x6D,,
0.002366,0x20,,
0.002452,0x30,,
0.002538,0x0D,,
...
and so on

--- End code ---

I wanted to get rid of the first column so I used the following regex to search for in the current document.


--- Code: ---.*[0-9]*[.][0-9e-]*,
--- End code ---

to be replaced with nothing.

This caused codeblocks to crash with an unhandled exception.

I've got Release 12.11 rev 8629 running on Windows 7.

Jenna:
Please try if it works if you uncheck "Settings -> Editor -> Margins and caret -> Use changebar".

Navigation

[0] Message Index

Go to full version