Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 5:
:[[User:DePiep/sfw/sandbox]]
 
This module is intended to find ''complete words'' in a string. For example, in the string '{{mono|1=alpha, foobar}}' the word '{{mono|1=alpha}}' appears, but the word '{{mono|1=foo}}' does not: there only is the complete word '{{mono|1=foobar}}'.
 
A '''word''' is defined to be consisting of: alphanumerics (a-z, A-Z, 0-9), the hyphen (-) and the underscore (_). For example: {{mono|1=foobar, foo-bar, foo_bar, foo123, Foo, FOO, _foo, 12, -x}}. All other characters are non-word-characters (like: {{nowrap|1='{{mono|1=, ; ( ) <space>}}'}}).