For the complete documentation index, see llms.txt. This page is also available as Markdown.

StringBuilderFind

No description available.

Method Signature

StringBuilderFind(stringBuilder=[stringBuilder], substring=[string], start=[integer])

Arguments

Argument
Type
Required
Description
Default

stringBuilder

stringBuilder

true

substring

string

true

start

integer

false

1

Examples

Find a substring position with find()

Finds the position of a substring in a StringBuilder.

sb = sb{'Hello BoxLang'};
result = find( sb, 'Box' );
writeOutput( result );

Result: 7

Case-insensitive find with a start position

Result: 15

Last updated

Was this helpful?