Post by pom » 24 Feb 2015, 07:42
This is Haystack:
higher temperature
random text
higher random text random text temperature
This is NeedleRegEx:
hig.{1,6}tem, which finds the following (red) pattern:
higher temperature
random text
higher random text random text temperature
However, when I go to MS Word's Advanced Find, check "use wildcards" checkbox and type
hig?{1,6}tem , which is compatible with
hig.{1,6}tem NeedleRegEx, it finds the following (red) patterns:
higher temperature
random text
higher random text random text temperature
Why does it find
higher random text random text tem pattern? If I understand this correctly, it shouldn't find it because there are much more than 6 characters between
hig and
tem. But it finds it… Why? I don't understand am I doing something wrong or is it a bug in MS Word?
Thanks.
Moderator: moved from Ask for Help since this is not an AHK question.
This is Haystack:
[quote][font=courier new]higher temperature
random text
higher random text random text temperature[/font][/quote]This is NeedleRegEx: [c]hig.{1,6}tem[/c], which finds the following (red) pattern:
[quote][font=courier new][color=#FF0000][b]higher tem[/b][/color]perature
random text
higher random text random text temperature[/font][/quote]However, when I go to MS Word's Advanced Find, check "use wildcards" checkbox and type [c]hig?{1,6}tem[/c] , which is compatible with [c]hig.{1,6}tem[/c] NeedleRegEx, it finds the following (red) patterns:
[quote][font=courier new][color=#FF0000][b]higher tem[/b][/color]perature
random text
[b][color=#FF0000]higher random text random text tem[/color][/b]perature[/font][/quote]Why does it find [c]higher random text random text tem[/c] pattern? If I understand this correctly, it shouldn't find it because there are much more than 6 characters between [c]hig[/c] and [c]tem[/c]. But it finds it… Why? I don't understand am I doing something wrong or is it a bug in MS Word?
Thanks.
[size=75][color=#BFBFFF][b]Moderator:[/b] moved from Ask for Help since this is not an AHK question.[/color][/size]