regex - How to extract this with regular expressions in C# -


i'm making addin outklook in c#. started see regular expressions. have 1 text next 1 (plain text in string or txt file), , have extract except after *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* word helpdesk. how can extract regular functions (or if not, how extract "message"?)? thanks.

the text:

bonjour,  le ticket 271068 été assigné à votre groupe security      date :         5/2/2013 4:07:09 pm      demandeur:     lastname name     utilisateur :  lastname name     catégorie :    security-mail spam     niveau d'urgence:       détails :      subject:       message: bonjour,   here comes message can of many lines , can contain anything.   merci         from: smtp:{thierry.promteau@oecd.org}thierry.promteau@oecd.org     to:    help@oecd.org     *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*   lien direct vers le ticket : http://sde.main.oecd.org/sde/default.aspx?modseq=24&sequence=271068&formseq=1030  cordialement  l’équipe du helpdesk 

if pattern : --*---*---*---*---*---*---*---*-- try :

 string[] splittedtext = regex.split(yourtext, "*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");   string result = splittedtext[0]; 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -