Regex query

can anyone help me to solve this expression

  • i want all the line after i find “Dispatch To :” word ? so for that what will be the regex ?
    thanks
    cheers :slight_smile:

image
@Mayur_Pawar

2 Likes

use
(?<=your string)(.*?)(?=)

Cheers @Mayur_Pawar

Fine
If the input is in a variable named strinput then
We can mention like this
stroutput = Split(strinput.ToString,”espatch To:”)(1).ToString.Trim

I m purposely leaving D in Despatch

Or if we want to use only Regex then it will be like this with expression

(?<=Despatch To\W:)(.\n.)*

Cheers @Mayur_Pawar

Cheers @Mayur_Pawar

what if i don’t want number just next all line like once i find “Dispatch To:” except this i want below all lines ?
@iVishalNayak

1 Like

can you please tell me What is the Output that you want?
@Mayur_Pawar

  • As i showed in screenshot i want that entire address . don’t want “Dispatch To:1213121”
    entire below address data
    @iVishalNayak
1 Like

Let me try

image
Choose Group1
image
@Mayur_Pawar

1 Like

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