Skip to content

raylib.TextReplaceBetweenAlloc

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Replace text between two specific strings REQUIRES: strncpy() NOTE: If (replacement == NULL) remove "begin"[ ]"end" text WARNING: Returned string must be freed by user

Parameters

Parameter Default Value Note
text
begin
end
replacement

Return value

Condition Return Value
(always) number

Notes

Example

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

Clone this wiki locally