jntrk
(jntrk)
November 20, 2020, 7:10am
1
Hello,
I have a process where I get mails and I need to extract the delivery date written in the mail. I tried to build my own expression but I wasnt successful. And the trick is sometimes the anchor will be “Delivery Date:” and sometimes “Liefer datum:”
The format is:
… … .
… . . . . … … … .
Delivery Date: 15.15.2020 … (or Liefer Datum: 15.15.2020)
…
…
I need to assign 15.15.2020 to a certain value.
mailDate = System.Text.RegularExpressions.RegEx.Match(mailbody, ).Value ,
(probably this is the vay but I dont have the regex.
Thank you inadvance
1 Like
Hello
Check out this Regex pattern:
(?<=Delivery Date: |Liefer Datum: )\d+.\d+.20\d+
Regex101 Preview here
If you want to learn more about Regex - check out my Regex MegaPost
Firstly, thank you everyone for your AMAZING response and support!
The secondary goal of this post was to make the forum ‘legends’ lives easier when responding to Regex forum posts. Time will tell whether this was achieved
I have made many edits (50+) to the post at this stage to try and improve it a little bit. Hopefully I can add a few more examples that people find friendly. Your suggestions are always welcome.
Thank you to Pablito and @bcorrea for…
Hopefully this helps
2 Likes
jntrk
(jntrk)
November 24, 2020, 11:42am
4
Its working thank you very much. Sorry for the delay response
1 Like
system
(system)
Closed
November 27, 2020, 11:42am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.