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.
I am looking for a regex code that would signal me when the only text in the source is a date (date and nothing but the date). The format of the date is always this: 26 mars 2020 followed by a tag.
Any ideas what that piece of code would look like?
thank you and much love and health to all of you!!
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: 12:41 English to Russian
Try this
Mar 12, 2020
1. This one is for "XX anymonth XXXX" or "X anymonth XXXX" ^\d{1,2}\s(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)\s\d{4}$ If you always have 2 chars for date (including 01, 02, 03, etc.), then remove 1, from the ^\d{1,2} group to read as ^\d{2}
Which tag? I can't figure out a situation with one trailing tag. Formatting (like bold or italics) gives a pair of tags. 'Field' text (like automatic page numbering) or tabs give no tag... See more
1. This one is for "XX anymonth XXXX" or "X anymonth XXXX" ^\d{1,2}\s(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)\s\d{4}$ If you always have 2 chars for date (including 01, 02, 03, etc.), then remove 1, from the ^\d{1,2} group to read as ^\d{2}
Which tag? I can't figure out a situation with one trailing tag. Formatting (like bold or italics) gives a pair of tags. 'Field' text (like automatic page numbering) or tabs give no tag at all...
2. Try this for dates with any tag(s) at the end: ^\d{1,2}\s(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)\s\d{4}<.*?>$ This portion <.*?> includes both paired and unpaired tags.
3. Try this for dates with an unpaired tag at the end: ^\d{1,2}\s(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)\s\d{4}<.*?/>$
Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!
The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.