Yann Büchau :python: on Nostr: It seems :nixos: #nix is lacking a lot of #regex functionality: - builtins.match ...
It seems
#nix is lacking a lot of #regex functionality:
- builtins.match can't match case-insensitively [1]
- regex escaping only in lib.strings.escapeRegex
- no regex search-and-replace at all!
[1]
https://github.com/NixOS/nix/issues/10682Published at
2024-07-31 05:11:12Event JSON
{
"id": "8e6dee6eedef36ddd615ef26d4b48b226f1eacfb1b1254ce1b5fb35e8ae23f40",
"pubkey": "0abc897a05eca0849f658dc45fb983e46041d357150b09df857131e7a7552848",
"created_at": 1722402672,
"kind": 1,
"tags": [
[
"t",
"nix"
],
[
"t",
"regex"
],
[
"emoji",
"nixos",
"https://cdn.fosstodon.org/custom_emojis/images/000/062/778/original/48d6a1983312ea5a.png"
],
[
"proxy",
"https://fosstodon.org/users/nobodyinperson/statuses/112879381549573218",
"activitypub"
]
],
"content": "It seems :nixos: #nix is lacking a lot of #regex functionality:\n\n- builtins.match can't match case-insensitively [1]\n- regex escaping only in lib.strings.escapeRegex\n- no regex search-and-replace at all!\n\n[1] https://github.com/NixOS/nix/issues/10682",
"sig": "0093d74672d08e316bf6b93a892376061e53b3c72e0b129b8318c6d35b87831fc612cf558363a39922dba96590f19360b7734bbd2cc410c99c99ef5e1d238d9c"
}