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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,723)