SpanExcluding

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

The search is case-sensitive.

Method Signature

SpanExcluding(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> 
 #spanExcluding( "This is Great", "r" )# 
 </bx:output>  

Additional Examples

Run Example

writeDump( spanExcluding( "Plant green! save earth!", "s" ) );
// Member Function
str = "AabByyysss";
writeDump( str.spanExcluding( "s" ) );

Last updated

Was this helpful?