THE FORUM IS IN READ-ONLY MODE
parseing text from a link
Mohammed8339 last edited by
hi, I was wondering if it was possible to parse certain text from a URL that like a function made
for example, the function block created a URL that goes like https://idksomeurl/guest/register/invite_dwadawdawdadw
now I want OpenBullet to parse that URL and only show: invite_dwadawdawdadw
if you want because something in the address in your block parse instead of <SOURCE> put <ADDRESS>
Br4uN last edited by Br4uN
If i understood well there is so many ways to do that
1- Using Left and Right
FUNCTION Constant "https://idksomeurl/guest/register/invite_dwadawdawdadw" -> VAR "URL" ## This is the function block that create the url 😐 PARSE "<URL>" LR "https://idksomeurl/guest/register/" "" -> VAR "MyCapture" ## If some part of url will be static.
2- Using Utility in case Url do some change but you always want the last part
FUNCTION Constant "https://idksomeurl/guest/register/invite_dwadawdawdadw" -> VAR "URL" ## This is the function block that create the url 😐 UTILITY Variable "URL" Split "/" -> VAR "Mycapture" FUNCTION Constant "<Mycapture[-1]>" -> VAR "MyfinalCapture"
Ya Mohammed First, grab your url and second, parse it
For grab when you have do your get request use a parse block and in the parse put <ADDRESS>
and paste this in Left string https://idksomeurl/guest/register/ but be careful where you put your block so that they don't take the wrong URL