hack のためのネタ帳, etc,,,

タグ検索でregex7件見つかりました。

20230707: Bing Chat - AWK で最左最短マッチング

* 状況 そろそろマシになってるかなーと思って試してみたんだけど Bing Chat さん、 *? を推してきたり、バージョン要件に Ruby 突っ込んできたりと、 相変わらず AWK の正規表現に対する認識がぐちゃぐちゃだった。 ---- Q: AWK で最左最短でマッチングしたいのですが正規表現はどのように書けば良いですか? A: AWKで最左最短でマッチングしたい場合は、正規表現の量指定子に`?`を付けることで非貪欲なマッチを行うことができます¹。例えば、`.*?`は…

https://seesaawiki.jp/w/kou1okada/d/20230707%3a%20... - 2023年07月07日更新

20210227: Python3 - HTML を re.search できない

-like object python regex>https://google.com/#q=cannot+use+a+string+pattern+on+a+bytes-like+object+python+regex]]」でググると以下のページを見つけた。 - stackoverflow / 2015-06-21: [[TypeError: can't use a string pattern on a bytes-like object in re.findall()>https://…

https://seesaawiki.jp/w/kou1okada/d/20210227%3a%20... - 2021年02月27日更新

20190910: PowerShell - grep

* 経緯 PowerShell で grep みたいなことしたいなと思って「[[PowerShell grep>https://google.com/#q=PowerShell+grep]]」でググってみたのだが - [[Select-String>https://docs.microsoft.com/ja-jp/powershell/module/Microsoft.PowerShell.Utility/Select-String]] ばかり出て来る。 試しに =|| > dir …

https://seesaawiki.jp/w/kou1okada/d/20190910%3a%20... - 2019年09月10日更新

zoekt

ネタ元: &twitter(1140423415175585794) &twitter(1140318485936873472) * 公式ページ等 - GitHub / google / [[zoekt>https://github.com/google/zoekt]] …

https://seesaawiki.jp/w/kou1okada/d/zoekt... - 2019年06月18日更新

20181220: Perl の正規表現と数字

* 経緯 昨日 &twitter(1075179745619263488) なんてツイートを見かけて、は!?って思って、自分でも試してみたところ、違うじゃねーか!ってなったんだけど、 どうも、全角の算用数字(アラビア数字)はマッチするんだそうな。 &twitter(1075538261508935680) &twitter(1075539270843097088) 実際試してみたらマッチした。 Perl に関しては門外漢なのでへーって感じなんだけど、なんか、これはもう少し深い話のようだ。 まず、Per…

https://seesaawiki.jp/w/kou1okada/d/20181220%3a%20... - 2018年12月20日更新

grep

?と、しばらく悩んだのだが man 7 regex 見たら以下のような記述を発見 =|BOX| ... With the exception of these and some combinations using ‘[’ (see next paragraphs), all other special characters, including ‘\’, lose their special significance within a bracket expression. ... ||= 何?これ?g…

https://seesaawiki.jp/w/kou1okada/d/grep... - 2016年03月17日更新

highway

ネタ元: &twitter(694455157082427392) * 公式ページ等 - GitHub / tkengo / [[highway>https://github.com/tkengo/highway]] - けんごのお屋敷 -- 2015-10-19: [[highway という高速検索ツールを作りました>http://tkengo.github.io/blog/2015/10/19/release-highway/]] -- 2015-12-11: [[文字列検索ツール hi…

https://seesaawiki.jp/w/kou1okada/d/highway... - 2016年02月02日更新

ai(22) android(29) bash(40) c++(52) cxx(54) cygwin(128) debian(39) deeplearning(32) diary(765) excel(21) font(30) free-book(47) git(21) github(28) gnu-r(77) google(26) hdd(22) html(25) java(26) javascript(118) latex(57) lcd(22) library(24) linux(97) machinelearning(31) memo(462) microsoft(42) oss(25) pdf(38) powershell(65) programming(32) proxy(23) python(100) r-lang(47) ruby(86) security(72) ssh(34) tex(37) tips(397) troubleshooting(443) ubuntu(114) unicode(22) usb(21) virtualization(24) vscode(28) windows(126) windows10(50) wsl(26) zfs(32) 数式(21)

管理人/副管理人のみ編集できます