cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dg_Reddy
Frequent Visitor

regex for Multiple line text file

Hi Everyone,

 

I am unable to use the regex for multiline text file. I read the values as a single text and using UTR-8 and after reading the text file data , it is coming multiple lines in a PA Variable . need to find the vAPI_USE_HOST data from text file and once found we need to take entire row. but i used the below regex but unable to find find the match

regex is : (vAPI_USE_HOST=.*$/gm)

vAPI_DEV_Host=https://
vAPI_PROD_Host=https://
vAPI_USE_HOST=https://
vAPI PROD_Host=http://

1 ACCEPTED SOLUTION

Accepted Solutions
Dg_Reddy
Frequent Visitor

Thanks. Its worked Perfectly

View solution in original post

4 REPLIES 4
Highboy
Super User
Super User

This will extract the whole line.
(vAPI_USE_HOST).*

Highboy_0-1636032112081.png

 

Dg_Reddy
Frequent Visitor

thanks a lot. it's working fine. i have one more question. can i extract only web url instead of whole line. need only content after matching " https:// ". is there any way?? . thanks in advance

 

(?<=vAPI_USE_HOST=).*

 

Dg_Reddy
Frequent Visitor

Thanks. Its worked Perfectly

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Top Solution Authors
Top Kudoed Authors
Users online (3,693)