I have read the lengthy discussion of "The %Return% token in the Wiki section here, and I'm pretty sure I understand the differences among \n \r and \R. However, I have a macro that searches a clipboard that behaves in a way that I can't figure out, so perhaps someone can help explain.
Here is the step in the macro that works
And here is relevant part of the clipboard that I have pasted into regex101 and so it appears as "TEST STRING"
In regex101 I can use the regex /(\d+)\R (or replace the \R with either \r or \n) and get the result I want (the number following the /). However in KM I can only use /(\d+) (as in the first screenshot). If I append \R or \r or \n in KM the search fails. The fix is obviously to omit the return token but I would like to understand why this happens so that in future where I may need to have the return token, I'll know how to do it properly.