2

How can I use SciTE to match a word character between 1 and 7 times?

normally it would be

\w{1,7}
Supernovah
  • 1,946
  • 12
  • 34
  • 50

2 Answers2

3

I don't think it can be done that way in SciTE.

Maybe: \w\w?\w?\w?\w?\w?\w?

Philippe Leybaert
  • 168,566
  • 31
  • 210
  • 223
  • Maybe add a \< at the start and a \> at the end. If matching whole words was the intent. – Tomalak Jun 03 '09 at 09:29
  • Actually the question mark doesn't seem to be supported either: http://www.nabble.com/Regex-search-replace:-%22-%22-does-not-work-td11981373.html – steamer25 Nov 13 '09 at 20:04
1

It does not support that syntax, you can view the docs here. As activa said, the only way to do it seems to be \w\w?\w?\w?\w?\w?\w?

Andrea Ambu
  • 38,188
  • 14
  • 54
  • 77