G
Guest
hi,
i know this might sound absurd but does anyone know how to search fora
particular pattern of text within a string and remove that every text from
the beginning of the string to that pattern(inclusive) and also just remove
that pattern alone from the whole text
e.g
"this is the arbitrary text that the *string* is in "
the result of the operation should give:
"is in "
hence the rest of the text has been removed
i know this can be done using regex.replace(), but i dont want to use that
option, i want to be able to do this vie substring() or stringBuilder
(preferably substring)
thanks
i know this might sound absurd but does anyone know how to search fora
particular pattern of text within a string and remove that every text from
the beginning of the string to that pattern(inclusive) and also just remove
that pattern alone from the whole text
e.g
"this is the arbitrary text that the *string* is in "
the result of the operation should give:
"is in "
hence the rest of the text has been removed
i know this can be done using regex.replace(), but i dont want to use that
option, i want to be able to do this vie substring() or stringBuilder
(preferably substring)
thanks