How can I find a certain thing after a keyword?

So I want to have this keyword system but I dont know how

e.g

local KeyWord = "Accessed DATA"
local String = "content=\"" .. KeyWord .. "\"."

how would i use content= to find the keyword

What’s with all the backslashes? It’s hard to tell exactly what you want…

So something like String:match("content=%b\"\"") ? This will get everything in between the quotes including the quotes themselves.

ermmm this is what i ended up with not sure if i can make it anymore efficient

Anyway to make this more efficient? ```lua
local Table = string.split(GetAsync, "content=")
local Table2 = string.split(Table[2], ">")
local String = string.gsub(Table2[1], "See more.", "")
local String2 = string.gsub(String, "\"", "\"")

local Hint = Instance.new("Hint")
Hint.Text = string.sub(String, 1, string.len(String) - 2) .. "\""
Hint.Parent = workspace

pls tell me if i can

I think your micro optimizating at this point, it doesn’t really matter if you can make it more efficient if this works for you.

If you really want to microptimize here’s an more efficient way.

local String = string.gsub(string.split(string.split(GetAsync, "content=")[2], ">")[1], "See more.", "")
local String2 = string.gsub(String, "\"", "\"") // UH you aren't using this anywhere so I think you should remove it...

local Hint = Instance.new("Hint")
Hint.Text = string.sub(String, 1, string.len(String) - 2) .. "\""
Hint.Parent = workspace

Is this the most efficient way though?

local String = string.match(GetAsync, "content=%b\"\"")
String = string.gsub(String, "content=", "")
String = string.gsub(String, " See more.", "")
print(String)

plese i really need to know

I just told you an more efficient way though look above:

he got a more efficient and simple way doe

my way sucsk because i suck :frowning:

how to i get that to retunr more than just 1?