I have to get Highlighted word

I have to get Highlighted

Thank
Shaik Muktharvalli

1 Like

You can get with Regex method like this

I assume u have read the text and saved as Strinput

Use a assign activity like this

Stroutput = System.Text.RegularExpressions.Regex.Match(Strinput.ToString, “(?<=Description:\n).+(?=_DETECTION)).ToString

Something like this actually

Hope this helps

Cheers

@shaik.muktharvalli1

@shaik.muktharvalli1

Hi @shaik.muktharvalli1

Can you share the text file so that I can help you with regex.
Regards.

@shaik.muktharvalli1

with regex use this

system.text.regularexpressions.regex.match(inputstr,“(?<=Description:\s+)[A-Z0-9/]+”).value

image

without regex use this

inputstr.split({“Description:”,“_DETECTION”},stringsplitoptions.RemoveEmptyEntries)(0).Trim

image

@shaik.muktharvalli1

use this regex

image

str=

Niveau d’urgence: Famille de symptômes:
SymptĂ´me:
Description:
VV0040/0407_DETECTION FEU CHAMPIGNEULLES_4AD
Donnée complémentaire:
Action en cours:
Action en cours EDS:
Date d’action en cours EDS:
Entrez l’heure
Entrez les minutes
Complément d’information sur l’action en cours EDS (nouvelle fenêtre)Complémen
l’action en cours EDS (nouvelle fenêtre)
Rappel 00h15 avant échéanceRappel 00h15 avant échéance
Outil de supervision:
Rattachement:
Pilote:

System.Text.RegularExpressions.Regex.Match(str,"(?<=Description:)\s{0,}[0-9A-Z\/]+").Value.Trim

cheers…!

Let us know for any clarification @shaik.muktharvalli1

thank you its working fine

1 Like

thank you @Palaniyappan its working fine

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.