import { words } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/string/index.js";
Extracts words (in latin characters) from the string.
Examples
Example 1
Example 1
import { words } from "@ayonli/jsext/string";
console.log(words("hello world")); // ["hello", "world"]
console.log(words("hello, world")); // ["hello", "world"]
console.log(words("hello-world")); // ["hello", "world"]
console.log(words("hello_world")); // ["hello", "world"]