Skip to content

raylib.TextReplaceBetween

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Replace the text between begin and end (keeping begin and end) with replacement; an empty or null replacement just removes it. Result is limited to 1023 bytes; use TextReplaceBetweenAlloc for longer text

Parameters

Parameter Default Value Note
text
begin
end
replacement

Return value

Condition Return Value
(always) number

Notes

Example

result = raylib.TextReplaceBetween("Hello [name] World", "[", "]", "Joe")
print result   // "Hello Joe World"

Clone this wiki locally