SA-MP Forums Archive
Find a string with brackets inside.... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Find a string with brackets inside.... (/showthread.php?tid=151423)



Find a string with brackets inside.... - Trooper[Y] - 30.05.2010

I want to use strfind to get this code :
Code:
onmouseout="this.style.backgroundColor='#fff'">
This aint work :
Code:
strfind(cc_content,"on‌mouseout=""this.style.backgroundColor=""""ss#fff""'"""">");
Can you tell me, how pawn can handle with brackets in the string ?


Re: Find a string with brackets inside.... - dice7 - 30.05.2010

pawn Code:
\"
is a placeholder for "


Re: Find a string with brackets inside.... - RyDeR` - 30.05.2010

Just use '\' before the brackets.
Will give us: \"%s\"