webloadui - Return part of string using Regex -


i'm looking regex retrieve guid following url

getuploadeduseraudioidfriendlyname=eb0c5663-a9c3-4321-8c0e-5ffbfb3139fc 

i've far got

getuploadeduseraudioid\?friendlyname=([a-fa-f0-9-]*) 

but returning full url

this image of expressions give idea of trying do. enter image description here

don't use regex this.

assuming you're using c#.net, use static parsequerystring() method of system.web.httputility class returns namevaluecollection.

uri myuri = new uri("http://www.example.com?getuploadeduseraudioidfriendlyname=eb0c5663-a9c3-4321-8c0e-5ffbfb3139fc"); string param1 = httputility.parsequerystring(myuri.query).get("param1"); 

check this documentation


edit: if want guid after that, cast one:

var paramguid = new guid(param1); 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -