Parse some value mixed with other information

Hello guys i trying all day to parse this vale:

session_id: 200.198.62.92-6c1e4594-a9a0-4501-8f7a-58605526aa7e

I need parse the id (constant change) after the ip 200.198.62.92 (constant change)

Example:

VARIABLES:
ID (Single) =6c1e4594-a9a0-4501-8f7a-58605526aa7e

since this string is in constant change. i cant figure how i can always parse that value.
any help will be appreciable.

thanks !

If this sessionid is a cookie just parse the value of the cookie and use
Left right
Left: -
Right: nothing

1 Like

That or you can use regex

\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}-(.+) It will be capture group 1
you can also name it as well
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}-(?<name>.+)

That way it will match anything between
x.x.x.x- to xxx.xxx.xxx.xxx- and capture anything after that as capture group 1/name

also x=digit

1 Like

thanks both.
:slight_smile:

im learning alot lately

1 Like