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日更新

3d(18) algorithm(14) androidone(13) api(15) authentication(14) backup(18) benchmark(18) book(17) c(19) console(17) css(13) dell(16) diagram(16) dns(16) docker(20) emacs(18) equation(16) firefox(18) framework(14) grub(16) hacks(17) kvm(18) make(18) markdown(17) mb(15) opencv(14) package(14) parallelcomputing(15) password(16) php(19) python3(20) salvage(14) samba(18) search(15) smb(19) ssl(17) statistics(20) terminal(14) texteditor(17) unix(17) unresolved(19) usb(21) vcs(14) virtualbox(18) web(15) webapi(14) winget(15) wpad(14) 数式(21) 未解決案件(18)

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