core :: Text :: search_from
pattern
after from
.The search starts at from
.
Return null if not found.
assert "I say hello to the world!".search_from("hello",4).from == 6
assert "I say hello to the world!".search_from("hello",7) == null
# Search the first occurence of `pattern` after `from`.
# The search starts at `from`.
# Return null if not found.
#
# assert "I say hello to the world!".search_from("hello",4).from == 6
# assert "I say hello to the world!".search_from("hello",7) == null
fun search_from(pattern: Pattern, from: Int): nullable Match do return pattern.search_in(self, from)
lib/core/text/string_search.nit:363,2--369,101