Difference between revisions of "Talk:Replace string"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with 'In reference to the RFI: {{CodeSample| description=For example, with this:| code= <syntaxhighlight> replace_string("abababa","aba","X"); </syntaxhighlight>| moreinfo= You get th…')
(No difference)

Revision as of 15:08, 12 March 2010

In reference to the RFI:

For example, with this:

replace_string("abababa","aba","X");

You get this:

Returned: XbX


I can't think of an example that would produce what's on my mind, and not even sure if it's possible, but if somehow there would be more replacements available if the first instance of a match was ignored, would this function prefer to do so, or does it indeed go left-to-right?