Attempting a substitute locks Netbeans 8.1
Brought to you by:
err
I have a line of code that looks like:
( "Lettuce", 0.89, 10, 20);
I was wanting to quote the "0.89" so I highlighted the line and did a :s which set a range on the highlighted line. The substitute command I type is:
:'<,'>s/, \([0-9\.]*\),/, "\1",/
when I hit enter, all of Netbeans locks up and I have to resort to killing the netbeans process. ( I was originally trying this on a much larger block of lines, but narrowed down to just this.) Note also, that
:'<,'>s/, \([^,]*\),/, "\1",/
works without problem, as does
:'<,'>s/\([0-9]*\)/\1/
but
:'<,'>s/\([0-9\.]*\)/\1/
does not, so I suspect it is a problem with . inside the square brackets.