# Regex query

**URL:** <https://forum.uipath.com/t/regex-query/184798>\
**Category:** Help\
**Tags:** regex, question, activities\
**Created:** [January 14, 2020, 6:52am UTC](https://forum.uipath.com/t/regex-query/184798 "2020-01-14T06:52:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayur\_Pawar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mayur_pawar/32/76335_2.png) [@Mayur\_Pawar](https://forum.uipath.com/u/Mayur_Pawar)\
**Post date:** [January 14, 2020, 6:52am UTC](https://forum.uipath.com/t/regex-query/184798/1 "2020-01-14T06:52:47Z")

</div>

![Screenshot (95)](https://global.discourse-cdn.com/uipath/original/3X/b/0/b0821ab2194ed58d8f3d39c617d7fe03a7534823.png) 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 🙂

---

<div class="post-metadata">

**Author:** ![iVishalNayak](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ivishalnayak/32/180606_2.png) [@iVishalNayak](https://forum.uipath.com/u/iVishalNayak)\
**Post date:** [January 14, 2020, 6:55am UTC](https://forum.uipath.com/t/regex-query/184798/2 "2020-01-14T06:55:33Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/9/2/92720470b5f34601ee3297c9be9b9bd938e1ff7c.png)  
@Mayur_Pawar

---

<div class="post-metadata">

**Author:** ![Shriharsha\_H\_N](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/shriharsha_h_n/32/113887_2.png) [@Shriharsha\_H\_N](https://forum.uipath.com/u/Shriharsha_H_N)\
**Post date:** [January 14, 2020, 6:55am UTC](https://forum.uipath.com/t/regex-query/184798/3 "2020-01-14T06:55:40Z")

</div>

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

Cheers @Mayur_Pawar

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [January 14, 2020, 6:56am UTC](https://forum.uipath.com/t/regex-query/184798/4 "2020-01-14T06:56:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mayur\_Pawar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mayur_pawar/32/76335_2.png) [@Mayur\_Pawar](https://forum.uipath.com/u/Mayur_Pawar)\
**Post date:** [January 14, 2020, 7:02am UTC](https://forum.uipath.com/t/regex-query/184798/5 "2020-01-14T07:02:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![iVishalNayak](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ivishalnayak/32/180606_2.png) [@iVishalNayak](https://forum.uipath.com/u/iVishalNayak)\
**Post date:** [January 14, 2020, 7:03am UTC](https://forum.uipath.com/t/regex-query/184798/6 "2020-01-14T07:03:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mayur\_Pawar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mayur_pawar/32/76335_2.png) [@Mayur\_Pawar](https://forum.uipath.com/u/Mayur_Pawar)\
**Post date:** [January 14, 2020, 7:05am UTC](https://forum.uipath.com/t/regex-query/184798/7 "2020-01-14T07:05:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![iVishalNayak](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ivishalnayak/32/180606_2.png) [@iVishalNayak](https://forum.uipath.com/u/iVishalNayak)\
**Post date:** [January 14, 2020, 7:06am UTC](https://forum.uipath.com/t/regex-query/184798/8 "2020-01-14T07:06:48Z")

</div>

Let me try

---

<div class="post-metadata">

**Author:** ![iVishalNayak](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ivishalnayak/32/180606_2.png) [@iVishalNayak](https://forum.uipath.com/u/iVishalNayak)\
**Post date:** [January 14, 2020, 7:09am UTC](https://forum.uipath.com/t/regex-query/184798/9 "2020-01-14T07:09:15Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/5/6/56cd87f4b4470b89d31c3ac17a2c5599fca54ef4.png)  
Choose Group1  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/8/b/8b05687435d8b99719fdd6eb1422d84b7598ae66.png)  
@Mayur_Pawar

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [January 17, 2020, 7:09am UTC](https://forum.uipath.com/t/regex-query/184798/10 "2020-01-17T07:09:16Z")

</div>

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