How to get some values using regex?

Hello,

Can anyone show me how to extract this value “Dysfonctionnement poste téléphonique” using regex from the text below ?

Thank you !

I ve tried this expression, close but not enough :slight_smile: (?<!–)[a-zA-Z0-9]

Bonjour,

Vous avez contacté le support le 04/11/2020

Nous vous confirmons la prise en compte de votre demande sous le numéro de dossier – 2011B08382

Votre demande : Dysfonctionnement poste téléphonique.

Statut : EN COURS DE TRAITEMENT.

Cordialement,

Hello there,

First I recommend you take a look at trying it with this tool: https://regex101.com/

Then, if you get stuck, here is an almost solution:

(?<=: )[A-Z][a-z](\w+\s?)+\.$

The reason this solution does not work is because of the non-english characters (é). Try finding the keycode for it.

Hope this helps

1 Like