>I am trying to use regex to find a string where ? could be between 0
> and 10 characters, for instance the strings:
[quoted text clipped - 26 lines]
>
> Any help (and especially examples) appreciated.
In a nutshell: ? and * don't behave the way you think they do.
Here's a nice tutorial about regular expressions:
http://www.codeproject.com/useritems/RegexTutorial.asp
Instead of writing ....... 10 times, you can use .{10}; You can also use
.{0,10} for a variable number of characters (in this case 0-10).
However, this would match 0-10 characters, whatever these characters are
(blanks, special characters, digits...), I'm not sure if that's what you
want...
Niki
Mad Scientist Jr - 30 Dec 2004 17:46 GMT
.{0,10}
was exactly what I was looking for
thanks for the reply !