Remove$

Takes two parameters, Source and Search

Description:

This command searches the Source for the Search value. If an exact match is found, the value of Search is removed from the Source and the remaining Source value is returned. If no match is found, the original Source is returned unchanged.

Example:

Match found at start of Source

[New] Source = "abcdefg"
[New] Search = "abc"

[New] Result = Remove$ Source, Search

Html Result 'Result is equal to "defg"

Match found in middle of Source

[New] Source = "abcdefg"
[New] Search = "def"

[New] Result = Remove$ Source, Search

Html Result 'Result is equal to "abcg"

No Match found in Source

[New] Source = "abcdefg"
[New] Search = "acb"

[New] Result = Remove$ Source, Search

Html Result 'Result is equal to "abcdefg"