utxo the webmaster 🧑💻 on Nostr: Here you go, from the php master $clean_filename = preg_replace('/(\.\w+).*/', '$1', ...
Here you go, from the php master
$clean_filename = preg_replace('/(\.\w+).*/', '$1', $filename);
Published at
2024-10-12 02:24:45Event JSON
{
"id": "f1798c8ec0552735836fd76a01db978a019a448da598cbabb6515a361ead27a9",
"pubkey": "e2ccf7cf20403f3f2a4a55b328f0de3be38558a7d5f33632fdaaefc726c1c8eb",
"created_at": 1728699885,
"kind": 1,
"tags": [
[
"e",
"7f3e5bde3a4fc28ccc50c1561b6a600f9ce85ac852e36a2ad0a86817853d4ee1",
"",
"root"
],
[
"p",
"8fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c"
]
],
"content": "Here you go, from the php master\n\n$clean_filename = preg_replace('/(\\.\\w+).*/', '$1', $filename);",
"sig": "74dbc9db015f85256e3bbd235169215addcc565198f78a2c391eb0934fb5cd3cccd3cb36c694589ec6f6676d778b4b43ec9517d5e64e570966c84b6d5fd5e80e"
}