How can I use the hat symbol to negate a character which is at the start of my regex in Scite?

116 Views Asked by At

In the Scite editor is there a way to runa regex search where the first character is "notted".

Normally the hat symbol (^) is used but at the start of the regex this indicates the start of a line.

So this:

^.', +'default'

Doesn't work (this sequence can be in the middle of a line). :-(

1

There are 1 best solutions below

2
Richard On

It appears that you can. A quick read of the documentation and square braces come to the rescue:

[^.]', +'default'