Hi all,
i'd like to write some regular expressions which match whole (specified) words on a line. For example, the string:
You feel weaker as the power of the Strength spell wanes.
i wish to filter (mark / change colour of) all instances of:
you,as,the,of,one,on
now if i use " (you|as|the|of|one|on) ", (with keep evaluating and repeat on same line ticked) if two matching words occur next to each other, it only matches the first. if another word matches further down the string, however, it matches ok.
the reason for the spaces on either side of the regexp is so it matches the entire word. i don't want it to match, for example, the "the" in "these", and therefore mark half the word.
of course one could capture all the words in the line, and parse it via script, and cause the output to popup else where, but i think speedwise the trigger only would be a tad quicker.
finally, awesome client, best i've come across yet, excellent work Nick.
thanks for any help.
m-L |