Ask Your Question

exclude strings of words using wildcards

asked 2016-03-23 15:22:40 +0200

CHGN gravatar image

updated 2016-03-23 15:24:05 +0200

Hi community,

I cannot seem to come up with the appropriate wildcard (I suppose it must be [!]) which would exclude from the expression


the following three words

argumentos argumenta argumentas

In other words, I would like it to find only the following three words

argumento argumental argumentales

so maybe it's the expression ⟨argument[oales]{1,4}⟩ which is not appropriate to begin with.

Note that I am actually trying to find a 'pattern expession' so that I can use it with any other morphological word family; thus, those three words are mere examples. I would use this pattern in a macro, and possibly in Find and Replace option, to implement replacements in batch.

Hope to hear news soon. Thank you so much in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-03-23 16:37:57 +0200

pierre-yves samyn gravatar image

updated 2016-03-23 16:39:55 +0200


If I understand well you can search for:


Explanation: \b for Word boundaries


edit flag offensive delete link more

answered 2016-03-23 17:23:16 +0200

oweng gravatar image

Bearing in mind that pattern matching, as the term indicates, is best used to find rather than exclude patterns, the following will match only the desired terms:


edit flag offensive delete link more



Hi @oweng

Nice, but may I suggest: argument(o|al(es)?)\b

(not to select the space after the word, to find the the word at the end of the paragraph, to avoid selecting the word followed by a letter other than s, etc.)


pierre-yves samyn gravatar imagepierre-yves samyn ( 2016-03-23 17:59:16 +0200 )edit

Thanks pierre-yves. That is a distinct improvement for the reason you indicate. I am still thinking of strings rather than words :-)

oweng gravatar imageoweng ( 2016-03-23 18:08:21 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-03-23 15:22:40 +0200

Seen: 110 times

Last updated: Mar 23 '16