Add `window title ends with..` in `if` block of `front window`

here:

I want to have an option that is ends with.

There is such option here:

image

But for some reason I can't do same on front window. :crying_cat_face:

Try switching to title matches, which uses RegEx.

"In any Action where the term “matches” is used, you may (optionally) use a regular expression."

Via: https://wiki.keyboardmaestro.com/Regular_Expressions

Given your example, the regex below should match the # only when it's the last character:

#$

1 Like

yea i thought regex was the way to go there

just hoped that KM covered this case too, weird it did not

1 Like

I just looked through both of those if conditions and, yeah, I see your point about the inconsistency.

But I'd assume it has something to with Any window title of being specifically about a window's title and The front window of being about windows generally (not just their title).

(Yes, I also see that The front window of does have window title specific options :upside_down_face:)

1 Like