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: 01:29 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: 08:29 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: 08:29 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: 01:29 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: 08:29 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.
Manage your TMs and Terms ... and boost your translation business
Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value