Event JSON
{
"id": "7238b88c84551c1bfe4730159798422d37ff3c97521edc3626f228398c56d2e7",
"pubkey": "9847de55900eb9942e09157c8628aada81497a7a8e1cb8feb26be01505f8506a",
"created_at": 1729808426,
"kind": 1,
"tags": [
[
"t",
"regularexpressions"
],
[
"t",
"regex"
],
[
"t",
"amcoding"
],
[
"proxy",
"https://mastodon.online/@shaedrich/113364725029865635",
"web"
],
[
"t",
"amprogramming"
],
[
"t",
"softwareengineering"
],
[
"t",
"regexp"
],
[
"t",
"webdev"
],
[
"proxy",
"https://mastodon.online/users/shaedrich/statuses/113364725029865635",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.online/users/shaedrich/statuses/113364725029865635",
"pink.momostr"
],
[
"-"
]
],
"content": "#RegExp experts:\n\nIs there a way to have a single regex and a single replacement for a masking task like this w/o looping or multiple function calls?\n\njohndoe@example.com\n?????*+@?????*+.?+\njohnd**@examp**.com\n\n1. 1st n chars unmasked\n2. Remaining chars until fixed chars masked\n3. Fixed chars as is\n4. 1st n chars unmasked\n5. Remaining chars until fixed chars masked\n6. Fixed chars as is\n7. Remaining chars unmasked\n\n#regex #regularExpressions #amCoding #amProgramming #webDev #softwareEngineering",
"sig": "80e3841125a9d42e2165bfe6c95d76522992671ae5e1f205b4c4ae4116b6246ded8eff64edcd330cec2c353f0f0ee30760bdac627f320f202c9f85321064e543"
}