ここでは、言語の変更された単語ファインダーです。
Webを検索しているので、これはUnicodeを使用しています。
必要な場合にのみascii用に作ることができます。
実際の単語は、グループ2に取り込まれています。
(?i)([^\pL\pN]*([\pL\pN](?:[\pL\pN_-]|\pP(?=[\pL\pN\pP_-])|[?.!])*otus)(?:\pP(?=[\pL\pN\pP_-])|[?.!])*(?=[^\pL\pN]|$))
https://regex101.com/r/HrFrEM/3
Formatted
(?i)
( # (1 start)
[^\pL\pN]* # Not letters/numbers
( # (2 start), Followed by letter/number
[\pL\pN]
(?:
[\pL\pN_-] # Letter/number or '-'
|
\pP # Or, punctuation if followed by punctuation/letter/number or '-'
(?= [\pL\pN\pP_-])
|
[?.!] # Or, (Add) Special word ending punctuation
)*
otus # Ends with this
) # (2 end)
(?:
\pP # Or, punctuation if followed by punctuation/letter/number or '-'
(?= [\pL\pN\pP_-])
|
[?.!] # Or, (Add) Special word ending punctuation
)*
(?= [^\pL\pN] | $)
) # (1 end)
出典
2017-05-04 00:25:42
sln
ハ!あなたがた両方に感謝します。私の申し訳ありませんが、私は完全に焦点を当てたstackoverflowがコーディングに集中していることを完全には理解していませんでした。私はプログラマーではないので、私のために "単語の終わり"検索を行うことができる既存のウェブサイトツール/検索エンジンが必要です。何かご意見は? – David
私の質問(とf/uのコメント)がかなりよく定義され、私に縛られているように、なぜこれが保留になっているのか分かりません。しかし... c'est la vie。 – David