The content of string before the match

var m = "hello world".search("lo")
assert m.text_before == "hel"

Property definitions

core $ Match :: text_before
	# 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)
lib/core/text/string_search.nit:280,2--286,60