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
Related
Last updated
Was this helpful?
