Hi,
I am a have content like below and i would like to extract git url from it. Please suggest me how to do it using rex?
Content:
proj_url\x1B[0;m=https://my.test.net/sample/test.git test\x1B[0;m=abcd.
Output should be: https://my.test.net/sample/test.git
Any help is appreciated.
Thanks.
Try this
..| rex "(?<URL>http\S+)"
OR
...| rex "x1B\[0\;m\=(?<URL>\S+)"
first query worked. Thank you
Try this
..| rex "(?<URL>http\S+)"
OR
...| rex "x1B\[0\;m\=(?<URL>\S+)"