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
ناشر الموضوع: Reed James
Reed James شيلي Local time: 04:32 عضو (2005) إسباني إلى أنجليزي
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: 11:32 أنجليزي إلى روسي + ...
\. 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 الاتحاد الروسي Local time: 11:32 أنجليزي إلى روسي
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 شيلي Local time: 04:32 عضو (2005) إسباني إلى أنجليزي
بادئ الموضوع
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 الاتحاد الروسي Local time: 11:32 أنجليزي إلى روسي
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.
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
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.