SpanIncluding

Gets characters from a string, from the beginning to a character that is NOT in a specified set of characters.

The search is case-sensitive.

Method Signature

SpanIncluding(string=[string], set=[string])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to extract from

set

string

true

The set of chracters to exclude from the span.

Examples

Tag Example

<bx:output> 
 #SpanIncluding( "This is Great", "p" )# 
 </bx:output>  

Additional Examples

Run Example

writeDump( spanIncluding( "Plant green! save earth!", "Plant green!r" ) );
// Member Function
str = "AabByyysss";
writeDump( str.spanIncluding( "AabBz" ) );

Last updated

Was this helpful?