chipmanners wrote:
Now what does the \K mean?
the manual wrote:
The escape sequence \K is similar to a look-behind assertion because it causes any previously-matched characters to be omitted from the final matched string. For example, foo\Kbar matches "foobar" but reports that it has matched "bar".
Quote:
how would I do this if I wanted to only remove the words connected to a number (in example, remove BCM100CM) so the output would look like:
I really love my 15 watt Speaker
Code:
var = I really love my BCM100CM 15 watt Speaker
newstring := regexreplace(var, "\s\K\w+\d+\w+\s")
msgbox % newstring