core :: Match :: text_before
string
var m = "hello world".search("lo") assert m.text_before == "hel"
# The content of `string` before the match # # ~~~ # var m = "hello world".search("lo") # assert m.text_before == "hel" # ~~~ fun text_before: String do return string.substring(0, from)