MultiLine Regex101 working but not in KM

Regex101.com usually provides the "global" option by default, which means it will show all matches that are found in the string.

KM Search shows only the FIRST match.

So, you have to do one of the following:

  • ADD another Capture Group to match the second occurrence.
  • Use for For Each action with a collection of "The substrings", like I just used in my post to another question:

image

In the future, please post your macro, or in the case of a RegEx request, post a real-world example of:

  1. Source text using Forum Code Block.
  2. Text after extraction/change
  3. The Regex pattern you have tried

If it is just a follow-on question, the post in the same topic.
If the subject of your question is materially different, the post in a new topic.

2 Likes