How to get a string starting from particular word "http"

i have a string like " 14159, L.P. 4 1551138 20190103 http://abx xyz.htm" and i wanted a string which starts from http only.
eg: " http://abx xyz.htm "

(http:).*
use this in Matches activity
cheers @pthakre

Hello,

Try with below replace condition in assign activity :

Convert.ToString(str).Substring(Convert.ToString(str).IndexOf(“http”), Convert.ToString(str).length - (Convert.ToString(str).IndexOf(“http”))).Trim()

str is your string like below :
str = " 14159, L.P. 4 1551138 20190103 http://abx xyz.htm"

Thanks.

1 Like

it is perfect. Thank you @sunilRdGlobal

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