4 Replies Latest reply on Jun 28, 2012 10:12 AM by camilo umaña

# How to find exactly the appereance of 3 (n) lowercase characters between periods in a text?

In grep?

The function {} is util for this?

Thank you.

• ###### 1. Re: How to find exactly the appereance of 3 (n) lowercase characters between periods in a text?

"\.\l\l\l\." is all it takes, but of course you can use "\.\l{3}\." as well.

The {n} notation is useful if you know a minimum or maximum number of occurrences up front -- "x{1,3}" will match 1, 2, or three exes, "x{,3} between zero and 3, "x{3,}" three or any larger number (where the largest number will be found). Additionally you can use the "?" switch to force the shortest possible match: "x{1,3}?" will match the shortest, and if there is nothing following this in your GREP it will always macth exactly one ex.

• ###### 2. Re: How to find exactly the appereance of 3 (n) lowercase characters between periods in a text?

It is a situation where some acronyms are not in caps in the manuscript and cannot be detected with the usual \u\u+.

But a happy circumstance is that these acronyms (2,3,4) with different letters are between periods.

But could not find the path. Could you please retry the thread?

• ###### 3. Re: How to find exactly the appereance of 3 (n) lowercase characters between periods in a text?

My suggestions in the very first line of my answer will find three lowercase characters between periods -- both of them, I'm totally sure of that. So if it doesn't work for you, this indicates your text does not contains such text ...

• ###### 4. Re: How to find exactly the appereance of 3 (n) lowercase characters between periods in a text?

Yes, quite sure.

I forgot to introduce the space...

\,\s\l\l\l\,

Thank you very much

(I was in a hurry and missed all the point)