This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.
Regex for finding period followed by lowercase letter
Thread poster: Reed James
Reed James Chile Local time: 21:37 Member (2005) Spanish to English
Sep 15, 2023
Hi. I'm finishing up a document, and I believe it may have some periods followed by a word with no space in between the two. I have tried ([a-z]) and that works when it comes to finding the lowercase letter, but how do I find the period too?
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Denis Fesik Local time: 04:37 English to Russian + ...
\. to escape
Sep 16, 2023
\.([a-z]) and put a tick to enable case-sensitive search. If you're searching from the filter box, you can just leave the square brackets. I think mQ's regex searches work the same way as they do on Trados
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Stepan Konev Russian Federation Local time: 04:37 English to Russian
Regex
Sep 16, 2023
\.[A-Za-z]
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Reed James Chile Local time: 21:37 Member (2005) Spanish to English
TOPIC STARTER
didn't work
Sep 19, 2023
This didn't work. It just highlighted many words in each segment. Actually what I really want to do is find a period followed by a space and then an uppercase or lowercase letter...
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Stepan Konev Russian Federation Local time: 04:37 English to Russian
Don't drop the \
Sep 19, 2023
Both regular expressions do the trick. The regex by Denis captures a period followed by a lower case (without any space in between because you did not mention it).
My regex captures a period followed by either lower or upper case (without any space in between again).
If it doesn't work for you, you do something wrong. Most probably you dropped the backslash character at the beginning (I tried to remove it and it caused exactly the same effect that you described above).
Howeve... See more
Both regular expressions do the trick. The regex by Denis captures a period followed by a lower case (without any space in between because you did not mention it).
My regex captures a period followed by either lower or upper case (without any space in between again).
If it doesn't work for you, you do something wrong. Most probably you dropped the backslash character at the beginning (I tried to remove it and it caused exactly the same effect that you described above).
However, now that you have changed your problem setting by adding a space character, you should use this regex:
\. [A-Ža-ž]
or
\.\s[A-Ža-ž]
The first regex only captures regular white spaces, the second one also captures non-breaking spaces.
The leading translation software used by over 270,000 translators.
Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop
and cloud solution, empowering you to work in the most efficient and cost-effective way.
Create customer quotes and invoices from within Trados Studio
Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.