Module:String/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
endswith
(removing a protection template from a non-protected page (info))
(endswith)
Line 367:
== endswith ==
Usage:
: <code><nowiki>{{#invoke:</nowiki>String|countendswith|''source_str''|''pattern_string''}}</code>
 
OR
 
: <code><nowiki>{{#invoke:</nowiki>String|countendswith|source= ''source_string'' |pattern= ''pattern_string''}}</code>
Returns "yes" if the source string ends with the pattern string. Both strings are trimmed before use.
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu