2022年4月23日土曜日

Wordle Word Searcher with Regular explession

Wordle の単語リストから正規表現を用いて単語を検索します.出題される単語リスト及び入力として許可される単語リストそれぞれから検索されます.探したい単語が

s m i l e

であれば

(?=[^][^][i][^l][e])(?=.*l)[^sm]{5}

のように入力します.正規表現について詳しくは Wordle単語を辞書から正規表現一発で検索する|Zenn がわかりやすいです.


Searches for words in Wordle word lists using regular expressions. Words are searched from both the list of words subjected and ones allowed as input. If the word you want to look for is

s m i l e

then the input should look something like this

(?=[^][^][i][^l][e])(?=.*l)[^sm]{5}


input:

your input:
subject words:
acceptable words:

ローカルのJavaScriptで実行しています.
過剰に重い正規表現を使用することは避けてください.
なにか不具合等ありましたらコメントかTwitterまで.
出典: Wordle


This function is performed with JavaScript. Please avoid using excessively heavy regular expressions.
If you find any problems, please contact me via comments or my Twitter.
Source: Wordle