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.
How do I change my regex to include also max. number of words?
Initiator des Themas: Fredrik Pettersson
Fredrik Pettersson Hongkong Local time: 11:51 Mitglied (2009) Englisch > Schwedisch + ...
Feb 16
I have this regex now:
(\w+\s+){4}\w
I want that it also states max. 5 number of words to filter on. How do I add that condition in my regex?
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 Russische Föderation Local time: 12:51 Englisch > Russisch
^(?:[\w]+\s){0,4}[\w]*[\s\.?!;\,]*$
Feb 16
If you want to capture segments consisting of up to 5 words, either with or without punctuation marks or space at the end, you need this regex: ^(?:[\w]+\s){0,4}[\w]*[\s\.?!;\,]*$
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Fredrik Pettersson Hongkong Local time: 11:51 Mitglied (2009) Englisch > Schwedisch + ...
THEMENSTARTER
Regex for max/min number of words
Feb 19
Works excellent to use your new regex for this project. Thanks a lot Stepan!
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
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
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.