GenieClient / Genie4

.NET 6 Update of Genie
GNU General Public License v3.0
20 stars 14 forks source link

Suggestion: Option to only sub full words #123

Open dantiadr opened 1 year ago

dantiadr commented 1 year ago

For example.

Let's say you set the word "take" to have a sub of "take (on me)".

You are in a conversation with someone who says "I'm sorry, I was mistaken about that". The sub will replace that with: "I'm sorry, I was mistake (on me)n about that."

I'd love to be able to toggle subs to only apply to full words, such that it would sub correctly on "take", but not on "mistaken".

digitalnyc1 commented 1 year ago

I believe this is already possible, since substitutes are regex. Use "\btake\b" instead of "take". The \b allows you to perform a "whole words only" match.