RemoveString()

Syntax

String$ = RemoveString(String$, StringToRemove$ [, Mode [, StartPosition [, NbOccurences]]])
Description
Finds all occurrences of 'StringToRemove$' within the given 'String$' and removes them. 'StartPosition' is the first character of the string to start the removing. First character position index is 1. If the optional 'NbOccurences' parameters is specified, it only removes the given 'StringToRemove$' up to the 'NbOccurences' number.

'Mode' is an optional parameter and may be a combination of the following values:
  #PB_String_NoCase: Case insensitive remove (A=a). By default the remove is case sensitive.

Example:


  Debug RemoveString("This is Art", "is") ; Will display "Th  Art"
  Debug RemoveString("This is Art", "is", 0, 1, 1) ; Will display "Th is Art"

Supported OS

All

<- RTrim() - String Index - ReplaceString() ->