|
| 19 Mar 2015 04:37 PM |
local String1 = String:match(Match.. '%d+.') String1 = String1:match('http://roblox.com/asset/?id=%d+.') print(String1, ' was found') return String or ''
Prints: >nil was found
I tried looking for the String Passed on to the Function in the Script who's Source am using... Found it, but here says nil :/
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 04:38 PM |
| I don't even understand what you are doing. String patterns do not work like that at all. What are you doing? |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 04:40 PM |
inside function... "%['Stuff'%] = 'http://roblox.com/asset/%?id=" is the Pattern I wanna Match... I even used String Manipulation though Command Prompt and it Worked! I Copied the Script to Workspace and it Worked :/
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 04:42 PM |
%w+ ?= ?rbxassetid://%d+
Also, rbxassetid:// is shorter, and works the same. |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 04:44 PM |
well I don't wanna change everything now XD I know I could use ctrl + H but still it could get messy :\ and I don't know... changes make things kinda bad for me... so for now am just Collecting Problems :/
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 04:53 PM |
just after local String1 I Added another Print... >['Stuff'] = 'http://roblox.com/asset/?id=6916117' was found >nil was found y can't I Search the String that was Brought to me by 'string.match'???
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 04:57 PM |
local String1 = String:match(Match.. '%d+.') String1 = String1:match('http://roblox.com/asset/?id='..String1)
Try that? |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 05:00 PM |
lol found the Problem, can't believe I didn't see it XD btw war, that wouldn't Work cos of Special Characters :/
I missed the '?' so I didn't put a '%' before it... XD
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 05:17 PM |
hmmm... ['Startup'] = true;
if string.match(stuff.Source, "%['Startup'%] == true") then
doesn't Work :/
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|