Skip to content

raylib.TextReplaceBetween

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Replace text between two specific strings REQUIRES: strncpy() NOTE: If (replacement == NULL) removes "begin"[ ]"end" 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