|
Forum Index : Microcontroller and PC projects : Does MMBasic have a REPLACE function (or sub)
| Author | Message | ||||
| thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4411 |
Hi folks, Does MMBasic have a single function/sub that does string matching and replacement yet? - I'm not aware of anything up to v6 but I haven't been paying full attentions since then. Thanks, Tom Edited 2026-11-25 08:37 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 785 |
Not exactly string, BUT LONGSTRING REPLACE array%() , string$, start Will substitute characters in the normal MMBasic string ‘string$’ into an existing long string ‘array%()’ starting at position ‘start’ in the long string. OR Appendix E – Regex Syntax Regex Syntax The alternate forms of the INSTR() and LINSTR() functions can take a regular expression as the search pattern. The alternate form of the functions are: INSTR([start],text$, search$ [,size]) LINSTR(text%(),search$ [,start] [,size] Edited 2026-11-25 09:11 by homa |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |