Checking omitted hashtag (#)

Hi there,

I’ve been trying to create a checklist to catch any missing hashtags (#) in #%(transactionId).

But no matter how I try, I keep getting an incomplete expression error.

Do you have any suggestions on how I can fix this?

To provide more context, here’s my attempt:
Source: "\#\%\(transactionId\)=1"
Target: -@1
Regular Expression ON for both source and target
Power search ON

Thank you very much

If the transactionId is a placeholder and should be preserved (not translated) in target, try the following:
Source: "(\#\%\([:letter:]+\))=1"
Target: -@1
PowerSearch, Regular Expressions: on.

2 Likes

Thank you so much! It works perfectly, and it even catches other similar placeholder with an omitted hashtag!