1

In image-dired I use M-x image-dired-mark-tagged-files to mark files containing a tag using regexp. e.g. jan. The problem is that jane is marked as well.

What regex do I need to mark jan but not jane?

Input:

/foo/IMG_2022.JPG;jan
/foo/IMG_2023.JPG;jane

While jan\$ works in regexp-builder, it returns 0 results if used in M-x image-dired-mark-tagged-files

jjk
  • 705
  • 4
  • 16

1 Answers1

0

Try jan\b (in Lisp code, that's jan\\b).

That says to match jan when the n is on a word boundary.

Drew
  • 75,699
  • 9
  • 109
  • 225
  • Any ideas to match the tag `bar` but not not the tag `foo bar`? Tried `\^bar`. Will gladly open another question. – jjk May 03 '22 at 06:05
  • 1
    One question per post, please. But you have to decide what exactly you want to exclude from matching before `bar`, and create a regexp that specifies that. – Drew May 03 '22 at 15:09