1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2051
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2509
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2514 …}
+votes: Doctrine\ORM\PersistentCollection {#2517 …}
+reports: Doctrine\ORM\PersistentCollection {#2519 …}
+favourites: Doctrine\ORM\PersistentCollection {#2521 …}
+notifications: Doctrine\ORM\PersistentCollection {#2523 …}
+badges: Doctrine\ORM\PersistentCollection {#2525 …}
+children: [
App\Entity\EntryComment {#2048
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2051 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2056 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2059 …}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#2070
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2046 …}
+nested: Doctrine\ORM\PersistentCollection {#2045 …}
+votes: Doctrine\ORM\PersistentCollection {#2050 …}
+reports: Doctrine\ORM\PersistentCollection {#2052 …}
+favourites: Doctrine\ORM\PersistentCollection {#2058 …}
+notifications: Doctrine\ORM\PersistentCollection {#2125 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#2049
date: 2024-01-23 17:40:40.0 +01:00
}
+"title": 334435
}
]
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#2497
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2366
date: 2024-01-23 15:17:47.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#2051
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2509
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2514 …}
+votes: Doctrine\ORM\PersistentCollection {#2517 …}
+reports: Doctrine\ORM\PersistentCollection {#2519 …}
+favourites: Doctrine\ORM\PersistentCollection {#2521 …}
+notifications: Doctrine\ORM\PersistentCollection {#2523 …}
+badges: Doctrine\ORM\PersistentCollection {#2525 …}
+children: [
App\Entity\EntryComment {#2048
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2051 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2056 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2059 …}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#2070
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2046 …}
+nested: Doctrine\ORM\PersistentCollection {#2045 …}
+votes: Doctrine\ORM\PersistentCollection {#2050 …}
+reports: Doctrine\ORM\PersistentCollection {#2052 …}
+favourites: Doctrine\ORM\PersistentCollection {#2058 …}
+notifications: Doctrine\ORM\PersistentCollection {#2125 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#2049
date: 2024-01-23 17:40:40.0 +01:00
}
+"title": 334435
}
]
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#2497
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2366
date: 2024-01-23 15:17:47.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2051
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2509
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2514 …}
+votes: Doctrine\ORM\PersistentCollection {#2517 …}
+reports: Doctrine\ORM\PersistentCollection {#2519 …}
+favourites: Doctrine\ORM\PersistentCollection {#2521 …}
+notifications: Doctrine\ORM\PersistentCollection {#2523 …}
+badges: Doctrine\ORM\PersistentCollection {#2525 …}
+children: [
App\Entity\EntryComment {#2048
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2051 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2056 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2059 …}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#2070
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2046 …}
+nested: Doctrine\ORM\PersistentCollection {#2045 …}
+votes: Doctrine\ORM\PersistentCollection {#2050 …}
+reports: Doctrine\ORM\PersistentCollection {#2052 …}
+favourites: Doctrine\ORM\PersistentCollection {#2058 …}
+notifications: Doctrine\ORM\PersistentCollection {#2125 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#2049
date: 2024-01-23 17:40:40.0 +01:00
}
+"title": 334435
}
]
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#2497
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2366
date: 2024-01-23 15:17:47.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2048
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2051
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2509
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2514 …}
+votes: Doctrine\ORM\PersistentCollection {#2517 …}
+reports: Doctrine\ORM\PersistentCollection {#2519 …}
+favourites: Doctrine\ORM\PersistentCollection {#2521 …}
+notifications: Doctrine\ORM\PersistentCollection {#2523 …}
+badges: Doctrine\ORM\PersistentCollection {#2525 …}
+children: [
App\Entity\EntryComment {#2048}
]
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#2497
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2366
date: 2024-01-23 15:17:47.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2056 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2059 …}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#2070
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2046 …}
+nested: Doctrine\ORM\PersistentCollection {#2045 …}
+votes: Doctrine\ORM\PersistentCollection {#2050 …}
+reports: Doctrine\ORM\PersistentCollection {#2052 …}
+favourites: Doctrine\ORM\PersistentCollection {#2058 …}
+notifications: Doctrine\ORM\PersistentCollection {#2125 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#2049
date: 2024-01-23 17:40:40.0 +01:00
}
+"title": 334435
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#2048
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2051
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2509
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2514 …}
+votes: Doctrine\ORM\PersistentCollection {#2517 …}
+reports: Doctrine\ORM\PersistentCollection {#2519 …}
+favourites: Doctrine\ORM\PersistentCollection {#2521 …}
+notifications: Doctrine\ORM\PersistentCollection {#2523 …}
+badges: Doctrine\ORM\PersistentCollection {#2525 …}
+children: [
App\Entity\EntryComment {#2048}
]
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#2497
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2366
date: 2024-01-23 15:17:47.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2056 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2059 …}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#2070
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2046 …}
+nested: Doctrine\ORM\PersistentCollection {#2045 …}
+votes: Doctrine\ORM\PersistentCollection {#2050 …}
+reports: Doctrine\ORM\PersistentCollection {#2052 …}
+favourites: Doctrine\ORM\PersistentCollection {#2058 …}
+notifications: Doctrine\ORM\PersistentCollection {#2125 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#2049
date: 2024-01-23 17:40:40.0 +01:00
}
+"title": 334435
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2048
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2051
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2509
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2514 …}
+votes: Doctrine\ORM\PersistentCollection {#2517 …}
+reports: Doctrine\ORM\PersistentCollection {#2519 …}
+favourites: Doctrine\ORM\PersistentCollection {#2521 …}
+notifications: Doctrine\ORM\PersistentCollection {#2523 …}
+badges: Doctrine\ORM\PersistentCollection {#2525 …}
+children: [
App\Entity\EntryComment {#2048}
]
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#2497
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2366
date: 2024-01-23 15:17:47.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2056 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2059 …}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#2070
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2046 …}
+nested: Doctrine\ORM\PersistentCollection {#2045 …}
+votes: Doctrine\ORM\PersistentCollection {#2050 …}
+reports: Doctrine\ORM\PersistentCollection {#2052 …}
+favourites: Doctrine\ORM\PersistentCollection {#2058 …}
+notifications: Doctrine\ORM\PersistentCollection {#2125 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#2049
date: 2024-01-23 17:40:40.0 +01:00
}
+"title": 334435
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2159
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "I-m-an-idiot-arm"
+title: "I'm an idiot (arm)"
+url: null
+body: """
EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.\n
\n
So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on [pkgs.org](https://pkgs.org) and searched up rar to see if I could download it directly instead of using apt.\n
\n
And it was there I realized there’s no arm version of rar.\n
\n
Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.\n
\n
Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.\n
\n
Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 21
+favouriteCount: 43
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1705524211 {#2491
date: 2024-01-17 21:43:31.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2496 …}
+votes: Doctrine\ORM\PersistentCollection {#2499 …}
+reports: Doctrine\ORM\PersistentCollection {#2501 …}
+favourites: Doctrine\ORM\PersistentCollection {#2503 …}
+notifications: Doctrine\ORM\PersistentCollection {#2505 …}
+badges: Doctrine\ORM\PersistentCollection {#2507 …}
+children: [
App\Entity\EntryComment {#2338
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2159 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+body: "Hahahaha"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705409227 {#2335
date: 2024-01-16 13:47:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@AI_toothbrush@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#2135 …}
+nested: Doctrine\ORM\PersistentCollection {#2137 …}
+votes: Doctrine\ORM\PersistentCollection {#2068 …}
+reports: Doctrine\ORM\PersistentCollection {#2069 …}
+favourites: Doctrine\ORM\PersistentCollection {#2074 …}
+notifications: Doctrine\ORM\PersistentCollection {#2071 …}
-id: 313449
-bodyTs: "'hahahaha':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6743841"
+editedAt: null
+createdAt: DateTimeImmutable @1705409227 {#2339
date: 2024-01-16 13:47:07.0 +01:00
}
+"title": 313449
}
]
-id: 30843
-titleTs: "'arm':5 'idiot':4 'm':2"
-bodyTs: "'23.10':86 'actual':14 'add':32 'alreadi':43,145 'apt':118 'archiv':21,39,57,187 'arm':30,128,138,231 'bang':62 'case':165 'could':111 'create/update':55 'd':189 'direct':114 'doesn':227 'download':112 'edit':1,192 'end':98 'everyon':9 'excit':195 'exist':161 'file':35,143,159,163 'final':97 'fine':23 'free':149 'got':194,203 'half':70 'handl':141 'head':64 'homebrew':207,219,226 'hour':72 'instal':44,49,75,150,205,218 'instead':115 'learn':224 'm1':93,211 'mac':94,212 'mini':95 'multivers':81 'need':15,154 'note':133 'offici':229 'packag':53,78 'pkgs.org':101,102 'prefer':190 'put':2 'rar':20,38,52,56,77,106,131,142,162,186,204 'realiz':124 'recommend':135 'rememb':199 'repackag':172 'repositori':82 'run':90 'scenario':166 'search':104 'second':198 'see':11,108 'side':132 'someth':156 'support':230 'tar':175 'to/update':33 'top':6 'tri':73,216 'ubuntu':85 'unpack':18 'unrar':42,148,168 'unrar-fre':147 'update/add':158 'use':117 'util':139 've':60,202 'version':129 'via':206 'vm':87,222 'wall':67 'work':183 'worst':164 'zip':177"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705461120
+visibility: "visible "
+apId: "https://lemmy.world/post/10766460"
+editedAt: DateTimeImmutable @1725148824 {#1347
date: 2024-09-01 02:00:24.0 +02:00
}
+createdAt: DateTimeImmutable @1705374720 {#1998
date: 2024-01-16 04:12:00.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#2159
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "I-m-an-idiot-arm"
+title: "I'm an idiot (arm)"
+url: null
+body: """
EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.\n
\n
So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on [pkgs.org](https://pkgs.org) and searched up rar to see if I could download it directly instead of using apt.\n
\n
And it was there I realized there’s no arm version of rar.\n
\n
Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.\n
\n
Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.\n
\n
Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 21
+favouriteCount: 43
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1705524211 {#2491
date: 2024-01-17 21:43:31.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2496 …}
+votes: Doctrine\ORM\PersistentCollection {#2499 …}
+reports: Doctrine\ORM\PersistentCollection {#2501 …}
+favourites: Doctrine\ORM\PersistentCollection {#2503 …}
+notifications: Doctrine\ORM\PersistentCollection {#2505 …}
+badges: Doctrine\ORM\PersistentCollection {#2507 …}
+children: [
App\Entity\EntryComment {#2338
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2159 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+body: "Hahahaha"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705409227 {#2335
date: 2024-01-16 13:47:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@AI_toothbrush@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#2135 …}
+nested: Doctrine\ORM\PersistentCollection {#2137 …}
+votes: Doctrine\ORM\PersistentCollection {#2068 …}
+reports: Doctrine\ORM\PersistentCollection {#2069 …}
+favourites: Doctrine\ORM\PersistentCollection {#2074 …}
+notifications: Doctrine\ORM\PersistentCollection {#2071 …}
-id: 313449
-bodyTs: "'hahahaha':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6743841"
+editedAt: null
+createdAt: DateTimeImmutable @1705409227 {#2339
date: 2024-01-16 13:47:07.0 +01:00
}
+"title": 313449
}
]
-id: 30843
-titleTs: "'arm':5 'idiot':4 'm':2"
-bodyTs: "'23.10':86 'actual':14 'add':32 'alreadi':43,145 'apt':118 'archiv':21,39,57,187 'arm':30,128,138,231 'bang':62 'case':165 'could':111 'create/update':55 'd':189 'direct':114 'doesn':227 'download':112 'edit':1,192 'end':98 'everyon':9 'excit':195 'exist':161 'file':35,143,159,163 'final':97 'fine':23 'free':149 'got':194,203 'half':70 'handl':141 'head':64 'homebrew':207,219,226 'hour':72 'instal':44,49,75,150,205,218 'instead':115 'learn':224 'm1':93,211 'mac':94,212 'mini':95 'multivers':81 'need':15,154 'note':133 'offici':229 'packag':53,78 'pkgs.org':101,102 'prefer':190 'put':2 'rar':20,38,52,56,77,106,131,142,162,186,204 'realiz':124 'recommend':135 'rememb':199 'repackag':172 'repositori':82 'run':90 'scenario':166 'search':104 'second':198 'see':11,108 'side':132 'someth':156 'support':230 'tar':175 'to/update':33 'top':6 'tri':73,216 'ubuntu':85 'unpack':18 'unrar':42,148,168 'unrar-fre':147 'update/add':158 'use':117 'util':139 've':60,202 'version':129 'via':206 'vm':87,222 'wall':67 'work':183 'worst':164 'zip':177"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705461120
+visibility: "visible "
+apId: "https://lemmy.world/post/10766460"
+editedAt: DateTimeImmutable @1725148824 {#1347
date: 2024-09-01 02:00:24.0 +02:00
}
+createdAt: DateTimeImmutable @1705374720 {#1998
date: 2024-01-16 04:12:00.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2159
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "I-m-an-idiot-arm"
+title: "I'm an idiot (arm)"
+url: null
+body: """
EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.\n
\n
So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on [pkgs.org](https://pkgs.org) and searched up rar to see if I could download it directly instead of using apt.\n
\n
And it was there I realized there’s no arm version of rar.\n
\n
Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.\n
\n
Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.\n
\n
Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 21
+favouriteCount: 43
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1705524211 {#2491
date: 2024-01-17 21:43:31.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2496 …}
+votes: Doctrine\ORM\PersistentCollection {#2499 …}
+reports: Doctrine\ORM\PersistentCollection {#2501 …}
+favourites: Doctrine\ORM\PersistentCollection {#2503 …}
+notifications: Doctrine\ORM\PersistentCollection {#2505 …}
+badges: Doctrine\ORM\PersistentCollection {#2507 …}
+children: [
App\Entity\EntryComment {#2338
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2159 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+body: "Hahahaha"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705409227 {#2335
date: 2024-01-16 13:47:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@AI_toothbrush@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#2135 …}
+nested: Doctrine\ORM\PersistentCollection {#2137 …}
+votes: Doctrine\ORM\PersistentCollection {#2068 …}
+reports: Doctrine\ORM\PersistentCollection {#2069 …}
+favourites: Doctrine\ORM\PersistentCollection {#2074 …}
+notifications: Doctrine\ORM\PersistentCollection {#2071 …}
-id: 313449
-bodyTs: "'hahahaha':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6743841"
+editedAt: null
+createdAt: DateTimeImmutable @1705409227 {#2339
date: 2024-01-16 13:47:07.0 +01:00
}
+"title": 313449
}
]
-id: 30843
-titleTs: "'arm':5 'idiot':4 'm':2"
-bodyTs: "'23.10':86 'actual':14 'add':32 'alreadi':43,145 'apt':118 'archiv':21,39,57,187 'arm':30,128,138,231 'bang':62 'case':165 'could':111 'create/update':55 'd':189 'direct':114 'doesn':227 'download':112 'edit':1,192 'end':98 'everyon':9 'excit':195 'exist':161 'file':35,143,159,163 'final':97 'fine':23 'free':149 'got':194,203 'half':70 'handl':141 'head':64 'homebrew':207,219,226 'hour':72 'instal':44,49,75,150,205,218 'instead':115 'learn':224 'm1':93,211 'mac':94,212 'mini':95 'multivers':81 'need':15,154 'note':133 'offici':229 'packag':53,78 'pkgs.org':101,102 'prefer':190 'put':2 'rar':20,38,52,56,77,106,131,142,162,186,204 'realiz':124 'recommend':135 'rememb':199 'repackag':172 'repositori':82 'run':90 'scenario':166 'search':104 'second':198 'see':11,108 'side':132 'someth':156 'support':230 'tar':175 'to/update':33 'top':6 'tri':73,216 'ubuntu':85 'unpack':18 'unrar':42,148,168 'unrar-fre':147 'update/add':158 'use':117 'util':139 've':60,202 'version':129 'via':206 'vm':87,222 'wall':67 'work':183 'worst':164 'zip':177"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705461120
+visibility: "visible "
+apId: "https://lemmy.world/post/10766460"
+editedAt: DateTimeImmutable @1725148824 {#1347
date: 2024-09-01 02:00:24.0 +02:00
}
+createdAt: DateTimeImmutable @1705374720 {#1998
date: 2024-01-16 04:12:00.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2338
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2159
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "I-m-an-idiot-arm"
+title: "I'm an idiot (arm)"
+url: null
+body: """
EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.\n
\n
So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on [pkgs.org](https://pkgs.org) and searched up rar to see if I could download it directly instead of using apt.\n
\n
And it was there I realized there’s no arm version of rar.\n
\n
Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.\n
\n
Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.\n
\n
Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 21
+favouriteCount: 43
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1705524211 {#2491
date: 2024-01-17 21:43:31.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2496 …}
+votes: Doctrine\ORM\PersistentCollection {#2499 …}
+reports: Doctrine\ORM\PersistentCollection {#2501 …}
+favourites: Doctrine\ORM\PersistentCollection {#2503 …}
+notifications: Doctrine\ORM\PersistentCollection {#2505 …}
+badges: Doctrine\ORM\PersistentCollection {#2507 …}
+children: [
App\Entity\EntryComment {#2338}
]
-id: 30843
-titleTs: "'arm':5 'idiot':4 'm':2"
-bodyTs: "'23.10':86 'actual':14 'add':32 'alreadi':43,145 'apt':118 'archiv':21,39,57,187 'arm':30,128,138,231 'bang':62 'case':165 'could':111 'create/update':55 'd':189 'direct':114 'doesn':227 'download':112 'edit':1,192 'end':98 'everyon':9 'excit':195 'exist':161 'file':35,143,159,163 'final':97 'fine':23 'free':149 'got':194,203 'half':70 'handl':141 'head':64 'homebrew':207,219,226 'hour':72 'instal':44,49,75,150,205,218 'instead':115 'learn':224 'm1':93,211 'mac':94,212 'mini':95 'multivers':81 'need':15,154 'note':133 'offici':229 'packag':53,78 'pkgs.org':101,102 'prefer':190 'put':2 'rar':20,38,52,56,77,106,131,142,162,186,204 'realiz':124 'recommend':135 'rememb':199 'repackag':172 'repositori':82 'run':90 'scenario':166 'search':104 'second':198 'see':11,108 'side':132 'someth':156 'support':230 'tar':175 'to/update':33 'top':6 'tri':73,216 'ubuntu':85 'unpack':18 'unrar':42,148,168 'unrar-fre':147 'update/add':158 'use':117 'util':139 've':60,202 'version':129 'via':206 'vm':87,222 'wall':67 'work':183 'worst':164 'zip':177"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705461120
+visibility: "visible "
+apId: "https://lemmy.world/post/10766460"
+editedAt: DateTimeImmutable @1725148824 {#1347
date: 2024-09-01 02:00:24.0 +02:00
}
+createdAt: DateTimeImmutable @1705374720 {#1998
date: 2024-01-16 04:12:00.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+body: "Hahahaha"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705409227 {#2335
date: 2024-01-16 13:47:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@AI_toothbrush@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#2135 …}
+nested: Doctrine\ORM\PersistentCollection {#2137 …}
+votes: Doctrine\ORM\PersistentCollection {#2068 …}
+reports: Doctrine\ORM\PersistentCollection {#2069 …}
+favourites: Doctrine\ORM\PersistentCollection {#2074 …}
+notifications: Doctrine\ORM\PersistentCollection {#2071 …}
-id: 313449
-bodyTs: "'hahahaha':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6743841"
+editedAt: null
+createdAt: DateTimeImmutable @1705409227 {#2339
date: 2024-01-16 13:47:07.0 +01:00
}
+"title": 313449
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#2338
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2159
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "I-m-an-idiot-arm"
+title: "I'm an idiot (arm)"
+url: null
+body: """
EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.\n
\n
So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on [pkgs.org](https://pkgs.org) and searched up rar to see if I could download it directly instead of using apt.\n
\n
And it was there I realized there’s no arm version of rar.\n
\n
Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.\n
\n
Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.\n
\n
Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 21
+favouriteCount: 43
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1705524211 {#2491
date: 2024-01-17 21:43:31.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2496 …}
+votes: Doctrine\ORM\PersistentCollection {#2499 …}
+reports: Doctrine\ORM\PersistentCollection {#2501 …}
+favourites: Doctrine\ORM\PersistentCollection {#2503 …}
+notifications: Doctrine\ORM\PersistentCollection {#2505 …}
+badges: Doctrine\ORM\PersistentCollection {#2507 …}
+children: [
App\Entity\EntryComment {#2338}
]
-id: 30843
-titleTs: "'arm':5 'idiot':4 'm':2"
-bodyTs: "'23.10':86 'actual':14 'add':32 'alreadi':43,145 'apt':118 'archiv':21,39,57,187 'arm':30,128,138,231 'bang':62 'case':165 'could':111 'create/update':55 'd':189 'direct':114 'doesn':227 'download':112 'edit':1,192 'end':98 'everyon':9 'excit':195 'exist':161 'file':35,143,159,163 'final':97 'fine':23 'free':149 'got':194,203 'half':70 'handl':141 'head':64 'homebrew':207,219,226 'hour':72 'instal':44,49,75,150,205,218 'instead':115 'learn':224 'm1':93,211 'mac':94,212 'mini':95 'multivers':81 'need':15,154 'note':133 'offici':229 'packag':53,78 'pkgs.org':101,102 'prefer':190 'put':2 'rar':20,38,52,56,77,106,131,142,162,186,204 'realiz':124 'recommend':135 'rememb':199 'repackag':172 'repositori':82 'run':90 'scenario':166 'search':104 'second':198 'see':11,108 'side':132 'someth':156 'support':230 'tar':175 'to/update':33 'top':6 'tri':73,216 'ubuntu':85 'unpack':18 'unrar':42,148,168 'unrar-fre':147 'update/add':158 'use':117 'util':139 've':60,202 'version':129 'via':206 'vm':87,222 'wall':67 'work':183 'worst':164 'zip':177"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705461120
+visibility: "visible "
+apId: "https://lemmy.world/post/10766460"
+editedAt: DateTimeImmutable @1725148824 {#1347
date: 2024-09-01 02:00:24.0 +02:00
}
+createdAt: DateTimeImmutable @1705374720 {#1998
date: 2024-01-16 04:12:00.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+body: "Hahahaha"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705409227 {#2335
date: 2024-01-16 13:47:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@AI_toothbrush@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#2135 …}
+nested: Doctrine\ORM\PersistentCollection {#2137 …}
+votes: Doctrine\ORM\PersistentCollection {#2068 …}
+reports: Doctrine\ORM\PersistentCollection {#2069 …}
+favourites: Doctrine\ORM\PersistentCollection {#2074 …}
+notifications: Doctrine\ORM\PersistentCollection {#2071 …}
-id: 313449
-bodyTs: "'hahahaha':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6743841"
+editedAt: null
+createdAt: DateTimeImmutable @1705409227 {#2339
date: 2024-01-16 13:47:07.0 +01:00
}
+"title": 313449
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2338
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2159
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "I-m-an-idiot-arm"
+title: "I'm an idiot (arm)"
+url: null
+body: """
EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.\n
\n
So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on [pkgs.org](https://pkgs.org) and searched up rar to see if I could download it directly instead of using apt.\n
\n
And it was there I realized there’s no arm version of rar.\n
\n
Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.\n
\n
Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.\n
\n
Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 21
+favouriteCount: 43
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1705524211 {#2491
date: 2024-01-17 21:43:31.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2496 …}
+votes: Doctrine\ORM\PersistentCollection {#2499 …}
+reports: Doctrine\ORM\PersistentCollection {#2501 …}
+favourites: Doctrine\ORM\PersistentCollection {#2503 …}
+notifications: Doctrine\ORM\PersistentCollection {#2505 …}
+badges: Doctrine\ORM\PersistentCollection {#2507 …}
+children: [
App\Entity\EntryComment {#2338}
]
-id: 30843
-titleTs: "'arm':5 'idiot':4 'm':2"
-bodyTs: "'23.10':86 'actual':14 'add':32 'alreadi':43,145 'apt':118 'archiv':21,39,57,187 'arm':30,128,138,231 'bang':62 'case':165 'could':111 'create/update':55 'd':189 'direct':114 'doesn':227 'download':112 'edit':1,192 'end':98 'everyon':9 'excit':195 'exist':161 'file':35,143,159,163 'final':97 'fine':23 'free':149 'got':194,203 'half':70 'handl':141 'head':64 'homebrew':207,219,226 'hour':72 'instal':44,49,75,150,205,218 'instead':115 'learn':224 'm1':93,211 'mac':94,212 'mini':95 'multivers':81 'need':15,154 'note':133 'offici':229 'packag':53,78 'pkgs.org':101,102 'prefer':190 'put':2 'rar':20,38,52,56,77,106,131,142,162,186,204 'realiz':124 'recommend':135 'rememb':199 'repackag':172 'repositori':82 'run':90 'scenario':166 'search':104 'second':198 'see':11,108 'side':132 'someth':156 'support':230 'tar':175 'to/update':33 'top':6 'tri':73,216 'ubuntu':85 'unpack':18 'unrar':42,148,168 'unrar-fre':147 'update/add':158 'use':117 'util':139 've':60,202 'version':129 'via':206 'vm':87,222 'wall':67 'work':183 'worst':164 'zip':177"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705461120
+visibility: "visible "
+apId: "https://lemmy.world/post/10766460"
+editedAt: DateTimeImmutable @1725148824 {#1347
date: 2024-09-01 02:00:24.0 +02:00
}
+createdAt: DateTimeImmutable @1705374720 {#1998
date: 2024-01-16 04:12:00.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2143 …}
+body: "Hahahaha"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705409227 {#2335
date: 2024-01-16 13:47:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@AI_toothbrush@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#2135 …}
+nested: Doctrine\ORM\PersistentCollection {#2137 …}
+votes: Doctrine\ORM\PersistentCollection {#2068 …}
+reports: Doctrine\ORM\PersistentCollection {#2069 …}
+favourites: Doctrine\ORM\PersistentCollection {#2074 …}
+notifications: Doctrine\ORM\PersistentCollection {#2071 …}
-id: 313449
-bodyTs: "'hahahaha':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6743841"
+editedAt: null
+createdAt: DateTimeImmutable @1705409227 {#2339
date: 2024-01-16 13:47:07.0 +01:00
}
+"title": 313449
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2348
+user: Proxies\__CG__\App\Entity\User {#2222 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: Proxies\__CG__\App\Entity\Image {#1987 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1984 …}
+slug: "Do-any-of-you-have-that-one-service-that-just"
+title: "Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times"
+url: "https://lemmy.world/pictrs/image/00fae0fd-bb5a-43ca-8ae4-07e62a18b36a.png"
+body: null
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 186
+favouriteCount: 989
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1729207671 {#2134
date: 2024-10-18 01:27:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2008 …}
+votes: Doctrine\ORM\PersistentCollection {#1980 …}
+reports: Doctrine\ORM\PersistentCollection {#1981 …}
+favourites: Doctrine\ORM\PersistentCollection {#1979 …}
+notifications: Doctrine\ORM\PersistentCollection {#2375 …}
+badges: Doctrine\ORM\PersistentCollection {#2374 …}
+children: [
App\Entity\EntryComment {#2330
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2348 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2346 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2351 …}
+body: "That’s what I’ve got running now, and for me Seafile is been rock solid."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704119372 {#2345
date: 2024-01-01 15:29:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@atmur@lemmy.world"
"@harsh3466@lemmy.world"
"@LordKitsuna@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2347 …}
+nested: Doctrine\ORM\PersistentCollection {#2344 …}
+votes: Doctrine\ORM\PersistentCollection {#2042 …}
+reports: Doctrine\ORM\PersistentCollection {#2060 …}
+favourites: Doctrine\ORM\PersistentCollection {#2331 …}
+notifications: Doctrine\ORM\PersistentCollection {#2289 …}
-id: 270019
-bodyTs: "'got':6 'rock':15 'run':7 'seafil':12 'solid':16 've':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6332283"
+editedAt: null
+createdAt: DateTimeImmutable @1704119372 {#2350
date: 2024-01-01 15:29:32.0 +01:00
}
+"title": 270019
}
]
-id: 26383
-titleTs: "'break':11 'constant':12 'd':14 'difficult':24 'love':15,17 'make':22 'nextcloud':18 'one':7 'servic':8 'sure':21 'time':26"
-bodyTs: null
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704157512
+visibility: "visible "
+apId: "https://lemmy.world/post/10181076"
+editedAt: null
+createdAt: DateTimeImmutable @1704071112 {#2226
date: 2024-01-01 02:05:12.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#2348
+user: Proxies\__CG__\App\Entity\User {#2222 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: Proxies\__CG__\App\Entity\Image {#1987 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1984 …}
+slug: "Do-any-of-you-have-that-one-service-that-just"
+title: "Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times"
+url: "https://lemmy.world/pictrs/image/00fae0fd-bb5a-43ca-8ae4-07e62a18b36a.png"
+body: null
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 186
+favouriteCount: 989
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1729207671 {#2134
date: 2024-10-18 01:27:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2008 …}
+votes: Doctrine\ORM\PersistentCollection {#1980 …}
+reports: Doctrine\ORM\PersistentCollection {#1981 …}
+favourites: Doctrine\ORM\PersistentCollection {#1979 …}
+notifications: Doctrine\ORM\PersistentCollection {#2375 …}
+badges: Doctrine\ORM\PersistentCollection {#2374 …}
+children: [
App\Entity\EntryComment {#2330
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2348 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2346 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2351 …}
+body: "That’s what I’ve got running now, and for me Seafile is been rock solid."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704119372 {#2345
date: 2024-01-01 15:29:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@atmur@lemmy.world"
"@harsh3466@lemmy.world"
"@LordKitsuna@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2347 …}
+nested: Doctrine\ORM\PersistentCollection {#2344 …}
+votes: Doctrine\ORM\PersistentCollection {#2042 …}
+reports: Doctrine\ORM\PersistentCollection {#2060 …}
+favourites: Doctrine\ORM\PersistentCollection {#2331 …}
+notifications: Doctrine\ORM\PersistentCollection {#2289 …}
-id: 270019
-bodyTs: "'got':6 'rock':15 'run':7 'seafil':12 'solid':16 've':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6332283"
+editedAt: null
+createdAt: DateTimeImmutable @1704119372 {#2350
date: 2024-01-01 15:29:32.0 +01:00
}
+"title": 270019
}
]
-id: 26383
-titleTs: "'break':11 'constant':12 'd':14 'difficult':24 'love':15,17 'make':22 'nextcloud':18 'one':7 'servic':8 'sure':21 'time':26"
-bodyTs: null
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704157512
+visibility: "visible "
+apId: "https://lemmy.world/post/10181076"
+editedAt: null
+createdAt: DateTimeImmutable @1704071112 {#2226
date: 2024-01-01 02:05:12.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2348
+user: Proxies\__CG__\App\Entity\User {#2222 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: Proxies\__CG__\App\Entity\Image {#1987 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1984 …}
+slug: "Do-any-of-you-have-that-one-service-that-just"
+title: "Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times"
+url: "https://lemmy.world/pictrs/image/00fae0fd-bb5a-43ca-8ae4-07e62a18b36a.png"
+body: null
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 186
+favouriteCount: 989
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1729207671 {#2134
date: 2024-10-18 01:27:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2008 …}
+votes: Doctrine\ORM\PersistentCollection {#1980 …}
+reports: Doctrine\ORM\PersistentCollection {#1981 …}
+favourites: Doctrine\ORM\PersistentCollection {#1979 …}
+notifications: Doctrine\ORM\PersistentCollection {#2375 …}
+badges: Doctrine\ORM\PersistentCollection {#2374 …}
+children: [
App\Entity\EntryComment {#2330
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2348 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2346 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2351 …}
+body: "That’s what I’ve got running now, and for me Seafile is been rock solid."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704119372 {#2345
date: 2024-01-01 15:29:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@atmur@lemmy.world"
"@harsh3466@lemmy.world"
"@LordKitsuna@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2347 …}
+nested: Doctrine\ORM\PersistentCollection {#2344 …}
+votes: Doctrine\ORM\PersistentCollection {#2042 …}
+reports: Doctrine\ORM\PersistentCollection {#2060 …}
+favourites: Doctrine\ORM\PersistentCollection {#2331 …}
+notifications: Doctrine\ORM\PersistentCollection {#2289 …}
-id: 270019
-bodyTs: "'got':6 'rock':15 'run':7 'seafil':12 'solid':16 've':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6332283"
+editedAt: null
+createdAt: DateTimeImmutable @1704119372 {#2350
date: 2024-01-01 15:29:32.0 +01:00
}
+"title": 270019
}
]
-id: 26383
-titleTs: "'break':11 'constant':12 'd':14 'difficult':24 'love':15,17 'make':22 'nextcloud':18 'one':7 'servic':8 'sure':21 'time':26"
-bodyTs: null
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704157512
+visibility: "visible "
+apId: "https://lemmy.world/post/10181076"
+editedAt: null
+createdAt: DateTimeImmutable @1704071112 {#2226
date: 2024-01-01 02:05:12.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2330
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2348
+user: Proxies\__CG__\App\Entity\User {#2222 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: Proxies\__CG__\App\Entity\Image {#1987 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1984 …}
+slug: "Do-any-of-you-have-that-one-service-that-just"
+title: "Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times"
+url: "https://lemmy.world/pictrs/image/00fae0fd-bb5a-43ca-8ae4-07e62a18b36a.png"
+body: null
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 186
+favouriteCount: 989
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1729207671 {#2134
date: 2024-10-18 01:27:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2008 …}
+votes: Doctrine\ORM\PersistentCollection {#1980 …}
+reports: Doctrine\ORM\PersistentCollection {#1981 …}
+favourites: Doctrine\ORM\PersistentCollection {#1979 …}
+notifications: Doctrine\ORM\PersistentCollection {#2375 …}
+badges: Doctrine\ORM\PersistentCollection {#2374 …}
+children: [
App\Entity\EntryComment {#2330}
]
-id: 26383
-titleTs: "'break':11 'constant':12 'd':14 'difficult':24 'love':15,17 'make':22 'nextcloud':18 'one':7 'servic':8 'sure':21 'time':26"
-bodyTs: null
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704157512
+visibility: "visible "
+apId: "https://lemmy.world/post/10181076"
+editedAt: null
+createdAt: DateTimeImmutable @1704071112 {#2226
date: 2024-01-01 02:05:12.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2346 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2351 …}
+body: "That’s what I’ve got running now, and for me Seafile is been rock solid."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704119372 {#2345
date: 2024-01-01 15:29:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@atmur@lemmy.world"
"@harsh3466@lemmy.world"
"@LordKitsuna@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2347 …}
+nested: Doctrine\ORM\PersistentCollection {#2344 …}
+votes: Doctrine\ORM\PersistentCollection {#2042 …}
+reports: Doctrine\ORM\PersistentCollection {#2060 …}
+favourites: Doctrine\ORM\PersistentCollection {#2331 …}
+notifications: Doctrine\ORM\PersistentCollection {#2289 …}
-id: 270019
-bodyTs: "'got':6 'rock':15 'run':7 'seafil':12 'solid':16 've':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6332283"
+editedAt: null
+createdAt: DateTimeImmutable @1704119372 {#2350
date: 2024-01-01 15:29:32.0 +01:00
}
+"title": 270019
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#2330
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2348
+user: Proxies\__CG__\App\Entity\User {#2222 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: Proxies\__CG__\App\Entity\Image {#1987 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1984 …}
+slug: "Do-any-of-you-have-that-one-service-that-just"
+title: "Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times"
+url: "https://lemmy.world/pictrs/image/00fae0fd-bb5a-43ca-8ae4-07e62a18b36a.png"
+body: null
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 186
+favouriteCount: 989
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1729207671 {#2134
date: 2024-10-18 01:27:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2008 …}
+votes: Doctrine\ORM\PersistentCollection {#1980 …}
+reports: Doctrine\ORM\PersistentCollection {#1981 …}
+favourites: Doctrine\ORM\PersistentCollection {#1979 …}
+notifications: Doctrine\ORM\PersistentCollection {#2375 …}
+badges: Doctrine\ORM\PersistentCollection {#2374 …}
+children: [
App\Entity\EntryComment {#2330}
]
-id: 26383
-titleTs: "'break':11 'constant':12 'd':14 'difficult':24 'love':15,17 'make':22 'nextcloud':18 'one':7 'servic':8 'sure':21 'time':26"
-bodyTs: null
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704157512
+visibility: "visible "
+apId: "https://lemmy.world/post/10181076"
+editedAt: null
+createdAt: DateTimeImmutable @1704071112 {#2226
date: 2024-01-01 02:05:12.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2346 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2351 …}
+body: "That’s what I’ve got running now, and for me Seafile is been rock solid."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704119372 {#2345
date: 2024-01-01 15:29:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@atmur@lemmy.world"
"@harsh3466@lemmy.world"
"@LordKitsuna@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2347 …}
+nested: Doctrine\ORM\PersistentCollection {#2344 …}
+votes: Doctrine\ORM\PersistentCollection {#2042 …}
+reports: Doctrine\ORM\PersistentCollection {#2060 …}
+favourites: Doctrine\ORM\PersistentCollection {#2331 …}
+notifications: Doctrine\ORM\PersistentCollection {#2289 …}
-id: 270019
-bodyTs: "'got':6 'rock':15 'run':7 'seafil':12 'solid':16 've':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6332283"
+editedAt: null
+createdAt: DateTimeImmutable @1704119372 {#2350
date: 2024-01-01 15:29:32.0 +01:00
}
+"title": 270019
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2330
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2348
+user: Proxies\__CG__\App\Entity\User {#2222 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: Proxies\__CG__\App\Entity\Image {#1987 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1984 …}
+slug: "Do-any-of-you-have-that-one-service-that-just"
+title: "Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times"
+url: "https://lemmy.world/pictrs/image/00fae0fd-bb5a-43ca-8ae4-07e62a18b36a.png"
+body: null
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 186
+favouriteCount: 989
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1729207671 {#2134
date: 2024-10-18 01:27:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2008 …}
+votes: Doctrine\ORM\PersistentCollection {#1980 …}
+reports: Doctrine\ORM\PersistentCollection {#1981 …}
+favourites: Doctrine\ORM\PersistentCollection {#1979 …}
+notifications: Doctrine\ORM\PersistentCollection {#2375 …}
+badges: Doctrine\ORM\PersistentCollection {#2374 …}
+children: [
App\Entity\EntryComment {#2330}
]
-id: 26383
-titleTs: "'break':11 'constant':12 'd':14 'difficult':24 'love':15,17 'make':22 'nextcloud':18 'one':7 'servic':8 'sure':21 'time':26"
-bodyTs: null
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704157512
+visibility: "visible "
+apId: "https://lemmy.world/post/10181076"
+editedAt: null
+createdAt: DateTimeImmutable @1704071112 {#2226
date: 2024-01-01 02:05:12.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2346 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2351 …}
+body: "That’s what I’ve got running now, and for me Seafile is been rock solid."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704119372 {#2345
date: 2024-01-01 15:29:32.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@atmur@lemmy.world"
"@harsh3466@lemmy.world"
"@LordKitsuna@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2347 …}
+nested: Doctrine\ORM\PersistentCollection {#2344 …}
+votes: Doctrine\ORM\PersistentCollection {#2042 …}
+reports: Doctrine\ORM\PersistentCollection {#2060 …}
+favourites: Doctrine\ORM\PersistentCollection {#2331 …}
+notifications: Doctrine\ORM\PersistentCollection {#2289 …}
-id: 270019
-bodyTs: "'got':6 'rock':15 'run':7 'seafil':12 'solid':16 've':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6332283"
+editedAt: null
+createdAt: DateTimeImmutable @1704119372 {#2350
date: 2024-01-01 15:29:32.0 +01:00
}
+"title": 270019
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
}
0 => App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
}
0 => App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
}
0 => App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095}
0 => App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095}
0 => App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095}
0 => App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
}
0 => App\Entity\EntryComment {#2325}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
}
0 => App\Entity\EntryComment {#2325}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2325
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087
+user: Proxies\__CG__\App\Entity\User {#2233 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "AppleTV-complete-replacement-opinions"
+title: "AppleTV complete replacement opinions"
+url: null
+body: """
Hi and hope all are well today. First, thanks in advance for any / all responses. Second, apologies if this isn’t the best place to ask this question.\n
\n
I’m curious if anyone, has moved completely from using an AppleTV to something else. Current use case for the ATV is a few streaming apps (Crunchyroll / HiDive, Tubi, etc.) and Apple Arcade (a few casual games).\n
\n
If you did completely switch, what did you decide on using? Did you go back to buying movies / using a DVD/Blu-Ray player, setup a mini PC and stream from websites / rip music and movies, use a gaming console instead, etc.?\n
\n
Exploring options and entertaining thoughts for right now. Again, thanks and have a good day / evening.\n
\n
**Edit** - 2024/01/01 - Just wanted to thank everyone for the lively discussion and resources (links, recommendations, etc.) related to my question.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 94
+favouriteCount: 76
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1719557516 {#2041
date: 2024-06-28 08:51:56.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2188 …}
+votes: Doctrine\ORM\PersistentCollection {#2286 …}
+reports: Doctrine\ORM\PersistentCollection {#2251 …}
+favourites: Doctrine\ORM\PersistentCollection {#2177 …}
+notifications: Doctrine\ORM\PersistentCollection {#2186 …}
+badges: Doctrine\ORM\PersistentCollection {#2003 …}
+children: [
1 => App\Entity\EntryComment {#2095
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#2087 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2086 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
This is the remote that replaced the hot garbage touch panel remote.\n
\n
Before tv+, the Apple TV was a platform with apps for the services you wanted to use. It was simple and intuitive. Want to watch Netflix, open the Netflix app.\n
\n
Then with tv+ they turned the whole thing into this inception bullshit. Sure you still have apps, but you also have tv plus with apps inside the app and obfuscation as to what’s watchable and what isn’t without subscribing to whatever rando service.\n
\n
I used to love Apple TV. It just worked. For reasons unrelated, around four years ago we switched to Roku. Well, now, on our tcl Roku tv, which is only four years old, the Roku software runs like hot garbage.\n
\n
We still have an Apple TV, (4K, dunno which one exactly, but around 6 years old). So instead of buying a whole new tv, which other than Roku’s garbage software, is a perfectly functional tv, I decided to hook up the Apple TV.\n
\n
I wasn’t thrilled about the idea of using that trash touch panel remote that came with it, but was kinda excited to get back to the clean ui that I remembered.\n
\n
That’s when I discovered all this inception bullshit. And Apple’s new inability to recognize that I’m logged in to my Apple/iCloud account on the Apple TV device. It kept prompting me to log in every five minutes or so, but then when affirming I want to log in, it would tell me I can’t log in, EVEN THOUGH I WAS LOGGED IN ON THE APPLE TV.\n
\n
After 20 minutes of that bullshit I tossed the Apple TV back in the box it came from and installed Kodi on a raspberry pi. That’s my new smart tv box.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704084966 {#2064
date: 2024-01-01 05:56:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#2093 …}
+nested: Doctrine\ORM\PersistentCollection {#2094 …}
+votes: Doctrine\ORM\PersistentCollection {#2140 …}
+reports: Doctrine\ORM\PersistentCollection {#2133 …}
+favourites: Doctrine\ORM\PersistentCollection {#2131 …}
+notifications: Doctrine\ORM\PersistentCollection {#2138 …}
-id: 269254
-bodyTs: "'/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':14 '20':288 '4k':147 '6':154 'account':241 'affirm':262 'ago':116 'also':75 'app':35,55,72,80,83 'appl':29,105,145,183,227,244,285,296 'apple/icloud':240 'around':113,153 'back':209,298 'better':4 'box':301,318 'bullshit':67,225,292 'buy':160 'came':200,303 'clean':212 'decid':178 'devic':246 'discov':221 'dunno':148 'even':277 'everi':254 'exact':151 'excit':206 'five':255 'four':114,131 'function':175 'garbag':8,22,140,170 'get':208 'hook':180 'hot':7,21,139 'idea':191 'inabl':230 'incept':66,224 'insid':81 'instal':306 'instead':158 'intuit':47 'isn':93 'kept':248 'kinda':205 'kodi':307 'lemmy.world':13 'lemmy.world/pictrs/image/c5c44dbd-0892-48cf-a940-4555c3b9a6a5.jpeg)this':12 'like':138 'log':236,252,266,275,281 'love':104 'm':235 'minut':256,289 'netflix':51,54 'new':163,229,315 'obfusc':85 'old':133,156 'one':150 'open':52 'panel':10,24,197 'perfect':174 'pi':311 'platform':33 'plus':78 'prompt':249 'rando':99 'raspberri':310 'reason':111 'recogn':232 'rememb':216 'remot':2,11,17,25,198 'replac':19 'roku':120,126,135,168 'run':137 'servic':38,100 'simpl':45 'smart':316 'softwar':136,171 'still':70,142 'subscrib':96 'sure':68 'switch':118 'tcl':125 'tell':270 'thing':63 'though':278 'thrill':188 'toss':294 'touch':9,23,196 'trash':195 'turn':60 'tv':27,30,58,77,106,127,146,164,176,184,245,286,297,317 'ui':213 'unrel':112 'use':42,102,193 'want':40,48,264 'wasn':186 'watch':50 'watchabl':90 'well':121 'whatev':98 'whole':62,162 'without':95 'work':109 'would':269 'year':115,132,155"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6328525"
+editedAt: DateTimeImmutable @1710176400 {#2089
date: 2024-03-11 18:00:00.0 +01:00
}
+createdAt: DateTimeImmutable @1704084966 {#2088
date: 2024-01-01 05:56:06.0 +01:00
}
+"title": 269254
}
0 => App\Entity\EntryComment {#2325}
]
-id: 26276
-titleTs: "'appletv':1 'complet':2 'opinion':4 'replac':3"
-bodyTs: "'2024/01/01':123 'advanc':11 'anyon':33 'apolog':17 'app':54 'appl':60 'appletv':40 'arcad':61 'ask':26 'atv':49 'back':80 'best':23 'buy':82 'case':46 'casual':64 'complet':36,69 'consol':103 'crunchyrol':55 'curious':31 'current':44 'day':120 'decid':74 'discuss':132 'dvd/blu-ray':86 'edit':122 'els':43 'entertain':109 'etc':58,105,137 'even':121 'everyon':128 'explor':106 'first':8 'game':65,102 'go':79 'good':119 'hi':1 'hidiv':56 'hope':3 'instead':104 'isn':20 'link':135 'live':131 'm':30 'mini':90 'move':35 'movi':83,99 'music':97 'option':107 'pc':91 'place':24 'player':87 'question':28,141 'recommend':136 'relat':138 'resourc':134 'respons':15 'right':112 'rip':96 'second':16 'setup':88 'someth':42 'stream':53,93 'switch':70 'thank':9,115,127 'thought':110 'today':7 'tubi':57 'use':38,45,76,84,100 'want':125 'websit':95 'well':6"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1704131560
+visibility: "visible "
+apId: "https://lemmy.sdf.org/post/9927857"
+editedAt: DateTimeImmutable @1710395355 {#2239
date: 2024-03-14 06:49:15.0 +01:00
}
+createdAt: DateTimeImmutable @1704045160 {#2221
date: 2023-12-31 18:52:40.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#2091 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2327 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2090 …}
+body: """
All of your points are great, but don’t consider that I was an Apple TV+ subscriber, so I needed the tv+ app.\n
\n
Jellyfin is one of my streaming sources, and I was intending to use the Swiftfin app on tvOS, along with tv+ app and apps for the other services I subscribe to. With Kodi I’m now just hitting my local library directly, and using the Kodi add ons for the other services I subscribe to.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1704123606 {#2326
date: 2024-01-01 16:40:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@randomcruft@lemmy.sdf.org"
"@plz1@lemmy.world"
"@Squizzy@lemmy.world"
"@harsh3466@lemmy.world"
"@prettybunnys@sh.itjust.works"
"@chiisana@lemmy.chiisana.net"
]
+children: Doctrine\ORM\PersistentCollection {#2329 …}
+nested: Doctrine\ORM\PersistentCollection {#2323 …}
+votes: Doctrine\ORM\PersistentCollection {#2300 …}
+reports: Doctrine\ORM\PersistentCollection {#2340 …}
+favourites: Doctrine\ORM\PersistentCollection {#2342 …}
+notifications: Doctrine\ORM\PersistentCollection {#2343 …}
-id: 270194
-bodyTs: "'add':70 'along':42 'app':23,39,45,47 'appl':15 'consid':10 'direct':65 'great':6 'hit':61 'intend':34 'jellyfin':24 'kodi':56,69 'librari':64 'local':63 'm':58 'need':20 'on':71 'one':26 'point':4 'servic':51,75 'sourc':30 'stream':29 'subscrib':17,53,77 'swiftfin':38 'tv':16,22,44 'tvos':41 'use':36,67"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6333363"
+editedAt: null
+createdAt: DateTimeImmutable @1704123606 {#2191
date: 2024-01-01 16:40:06.0 +01:00
}
+"title": 270194
} |
|
Show voter details
|
37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
38 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
39 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
40 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
} |
|
Show voter details
|
43 |
DENIED
|
edit
|
App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
} |
|
Show voter details
|
44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
} |
|
Show voter details
|
45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
46 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
} |
|
Show voter details
|
47 |
DENIED
|
edit
|
App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
} |
|
Show voter details
|
48 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
} |
|
Show voter details
|
49 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
50 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
} |
|
Show voter details
|
51 |
DENIED
|
edit
|
App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
} |
|
Show voter details
|
52 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
} |
|
Show voter details
|
53 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
54 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
} |
|
Show voter details
|
55 |
DENIED
|
edit
|
App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
} |
|
Show voter details
|
56 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
} |
|
Show voter details
|
57 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
58 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
} |
|
Show voter details
|
59 |
DENIED
|
edit
|
App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
} |
|
Show voter details
|
60 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
} |
|
Show voter details
|
61 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
62 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
} |
|
Show voter details
|
63 |
DENIED
|
edit
|
App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
} |
|
Show voter details
|
64 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
} |
|
Show voter details
|
65 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
66 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
} |
|
Show voter details
|
67 |
DENIED
|
edit
|
App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
} |
|
Show voter details
|
68 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
} |
|
Show voter details
|
69 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
70 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
} |
|
Show voter details
|
71 |
DENIED
|
edit
|
App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
} |
|
Show voter details
|
72 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
} |
|
Show voter details
|
73 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
74 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
} |
|
Show voter details
|
75 |
DENIED
|
edit
|
App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
} |
|
Show voter details
|
76 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
} |
|
Show voter details
|
77 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
78 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
} |
|
Show voter details
|
79 |
DENIED
|
edit
|
App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
} |
|
Show voter details
|
80 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
} |
|
Show voter details
|
81 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
82 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
} |
|
Show voter details
|
83 |
DENIED
|
edit
|
App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
} |
|
Show voter details
|
84 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084}
0 => App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
} |
|
Show voter details
|
85 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
86 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
} |
|
Show voter details
|
87 |
DENIED
|
edit
|
App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
} |
|
Show voter details
|
88 |
DENIED
|
moderate
|
App\Entity\EntryComment {#2033
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551
+user: App\Entity\User {#265 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "My-First-Regular-Expressions"
+title: "My First Regular Expressions"
+url: null
+body: """
I’ve been reading *Mastering Regular Expressions* by Jeffrey E.F. Friedl, and since nobody in my life (aside from my wife) cares, I thought I’d share something I’m pretty proud of. My first set of regular expressions, that I wrote myself to manipulate the text I’m working with.\n
\n
What’s I’m so happy about is that I wrote these expressions. I understand exactly what they do and the purpose of each character in each expression.\n
\n
I’ve used regex in the past. Stuff cobbled together from stack overflow, but I never really understood how they worked or what the expressions meant, just that they did what I needed them to do at the time.\n
\n
I’m only about 10% of the way through the book, but already I understand so much more than I ever did about regex *(I also recognize I have a lot to learn)*.\n
\n
I wrote the expressions to be used with egrep and sed to generate and clean up a list of filenames pulled out of tarballs. *(movies I’ve ripped from my DVD collection and tarballed to archive them)*.\n
\n
The first expression I wrote was this one used with tar and egrep to list the files in the tarball and get just the name of the video file:\n
\n
`tar -tzvf file.tar.gz | egrep -o ‘/[^/]*.m(kv|p4)’ > movielist`\n
\n
Which gives me a list of movies of which this is an example:\n
\n
`/The.Hunger.Games.(2012).[tmdbid-70160].mp4`\n
\n
Then I used sed with the expression groups to remove:\n
\n
- the leading forward slash\n
- Everything from `.[` to the end\n
- All of the periods in between words\n
\n
And the last expression checks for one or more spaces and replaces them with a single space.\n
\n
This is the full sed command:\n
\n
`sed -Eie ‘s/^///; s/.[[a-z]±[0-9]+].m(p4|kv)//; s/[^a-zA-Z0-9()&-]/ /g; s/ +/ /g’ movielist`\n
\n
Which leaves me with a pretty list of movies that looks like this:\n
\n
`The Hunger Games (2012)`\n
\n
I’m sure this could be done more elegantly, and I’m happy for any feedback on how to do that! For now, I’m just excited that I’m beginning to understand regex and how to use it!\n
\n
Edit: fixed title so it didn’t say “regex expressions”
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 63
+favouriteCount: 214
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1711562613 {#2362
date: 2024-03-27 19:03:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2352 …}
+votes: Doctrine\ORM\PersistentCollection {#1350 …}
+reports: Doctrine\ORM\PersistentCollection {#1351 …}
+favourites: Doctrine\ORM\PersistentCollection {#1353 …}
+notifications: Doctrine\ORM\PersistentCollection {#1358 …}
+badges: Doctrine\ORM\PersistentCollection {#1355 …}
+children: [
11 => App\Entity\EntryComment {#1883
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2391 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: "So much truth here."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472082 {#1908
date: 2023-12-25 03:41:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
"@NegativeLookBehind@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2389 …}
+nested: Doctrine\ORM\PersistentCollection {#2387 …}
+votes: Doctrine\ORM\PersistentCollection {#2394 …}
+reports: Doctrine\ORM\PersistentCollection {#2393 …}
+favourites: Doctrine\ORM\PersistentCollection {#1381 …}
+notifications: Doctrine\ORM\PersistentCollection {#1402 …}
-id: 250151
-bodyTs: "'much':2 'truth':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230638"
+editedAt: null
+createdAt: DateTimeImmutable @1703472082 {#1407
date: 2023-12-25 03:41:22.0 +01:00
}
+"title": 250151
}
9 => App\Entity\EntryComment {#1686
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: """
Thank you very much. I will definitely check out the regex builders. That’ll be super useful\n
\n
Edit: fix stupid autocorrect turning regex into Reyes.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703458177 {#1561
date: 2023-12-24 23:49:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#1705 …}
+nested: Doctrine\ORM\PersistentCollection {#1616 …}
+votes: Doctrine\ORM\PersistentCollection {#1598 …}
+reports: Doctrine\ORM\PersistentCollection {#1629 …}
+favourites: Doctrine\ORM\PersistentCollection {#1626 …}
+notifications: Doctrine\ORM\PersistentCollection {#1618 …}
-id: 249709
-bodyTs: "'autocorrect':21 'builder':12 'check':8 'definit':7 'edit':18 'fix':19 'll':14 'much':4 'regex':11,23 'rey':25 'stupid':20 'super':16 'thank':1 'turn':22 'use':17"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6228163"
+editedAt: DateTimeImmutable @1707607977 {#1527
date: 2024-02-11 00:32:57.0 +01:00
}
+createdAt: DateTimeImmutable @1703458177 {#1528
date: 2023-12-24 23:49:37.0 +01:00
}
+"title": 249709
}
10 => App\Entity\EntryComment {#1557
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1556 …}
+body: """
🤣\n
\n
I went though about 20 iterations to get all of this to work correctly.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456899 {#1621
date: 2023-12-24 23:28:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1558 …}
+nested: Doctrine\ORM\PersistentCollection {#1565 …}
+votes: Doctrine\ORM\PersistentCollection {#1563 …}
+reports: Doctrine\ORM\PersistentCollection {#1564 …}
+favourites: Doctrine\ORM\PersistentCollection {#1559 …}
+notifications: Doctrine\ORM\PersistentCollection {#1567 …}
-id: 249660
-bodyTs: "'20':5 'correct':14 'get':8 'iter':6 'though':3 'went':2 'work':13"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227942"
+editedAt: null
+createdAt: DateTimeImmutable @1703456899 {#1555
date: 2023-12-24 23:28:19.0 +01:00
}
+"title": 249660
}
7 => App\Entity\EntryComment {#2411
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1795 …}
+body: "Computerphile! I’ll check those out."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471795 {#2463
date: 2023-12-25 03:36:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Tetsuo@jlai.lu"
]
+children: Doctrine\ORM\PersistentCollection {#2447 …}
+nested: Doctrine\ORM\PersistentCollection {#2462 …}
+votes: Doctrine\ORM\PersistentCollection {#2461 …}
+reports: Doctrine\ORM\PersistentCollection {#2460 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2454 …}
-id: 250141
-bodyTs: "'check':4 'computerphil':1 'll':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230590"
+editedAt: null
+createdAt: DateTimeImmutable @1703471795 {#2448
date: 2023-12-25 03:36:35.0 +01:00
}
+"title": 250141
}
8 => App\Entity\EntryComment {#1731
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1725 …}
+body: "Thank you!!!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703471226 {#1597
date: 2023-12-25 03:27:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Trent@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1723 …}
+nested: Doctrine\ORM\PersistentCollection {#1721 …}
+votes: Doctrine\ORM\PersistentCollection {#1728 …}
+reports: Doctrine\ORM\PersistentCollection {#1730 …}
+favourites: Doctrine\ORM\PersistentCollection {#1734 …}
+notifications: Doctrine\ORM\PersistentCollection {#1727 …}
-id: 250117
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230475"
+editedAt: null
+createdAt: DateTimeImmutable @1703471226 {#1617
date: 2023-12-25 03:27:06.0 +01:00
}
+"title": 250117
}
5 => App\Entity\EntryComment {#2385
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "That looks like a great way to practice"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472066 {#2386
date: 2023-12-25 03:41:06.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2378 …}
+nested: Doctrine\ORM\PersistentCollection {#2381 …}
+votes: Doctrine\ORM\PersistentCollection {#1910 …}
+reports: Doctrine\ORM\PersistentCollection {#1909 …}
+favourites: Doctrine\ORM\PersistentCollection {#1926 …}
+notifications: Doctrine\ORM\PersistentCollection {#1874 …}
-id: 250147
-bodyTs: "'great':5 'like':3 'look':2 'practic':8 'way':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230634"
+editedAt: null
+createdAt: DateTimeImmutable @1703472066 {#2382
date: 2023-12-25 03:41:06.0 +01:00
}
+"title": 250147
}
6 => App\Entity\EntryComment {#1724
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1719 …}
+body: "She does but, I’d stay away from the sister. 🤣"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471560 {#1733
date: 2023-12-25 03:32:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@prowess2956@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#1715 …}
+nested: Doctrine\ORM\PersistentCollection {#1718 …}
+votes: Doctrine\ORM\PersistentCollection {#1716 …}
+reports: Doctrine\ORM\PersistentCollection {#1739 …}
+favourites: Doctrine\ORM\PersistentCollection {#1740 …}
+notifications: Doctrine\ORM\PersistentCollection {#2465 …}
-id: 250127
-bodyTs: "'away':7 'd':5 'sister':10 'stay':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230539"
+editedAt: null
+createdAt: DateTimeImmutable @1703471560 {#1729
date: 2023-12-25 03:32:40.0 +01:00
}
+"title": 250127
}
4 => App\Entity\EntryComment {#2470
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2469 …}
+body: "Guess I’ve got problems!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703471996 {#2459
date: 2023-12-25 03:39:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@mcepl@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#2467 …}
+nested: Doctrine\ORM\PersistentCollection {#2371 …}
+votes: Doctrine\ORM\PersistentCollection {#2370 …}
+reports: Doctrine\ORM\PersistentCollection {#2360 …}
+favourites: Doctrine\ORM\PersistentCollection {#2361 …}
+notifications: Doctrine\ORM\PersistentCollection {#2372 …}
-id: 250145
-bodyTs: "'got':4 'guess':1 'problem':5 've':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230619"
+editedAt: null
+createdAt: DateTimeImmutable @1703471996 {#2468
date: 2023-12-25 03:39:56.0 +01:00
}
+"title": 250145
}
3 => App\Entity\EntryComment {#1401
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1404 …}
+body: "Vim is on my list of things to learn. I didn’t even know vim had its own regex, but I suppose that makes sense. I’ve messed with vim a bit, but have stuck to nano so far."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472141 {#1385
date: 2023-12-25 03:42:21.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#1363 …}
+nested: Doctrine\ORM\PersistentCollection {#1362 …}
+votes: Doctrine\ORM\PersistentCollection {#2019 …}
+reports: Doctrine\ORM\PersistentCollection {#2030 …}
+favourites: Doctrine\ORM\PersistentCollection {#2026 …}
+notifications: Doctrine\ORM\PersistentCollection {#2022 …}
-id: 250152
-bodyTs: "'bit':32 'didn':11 'even':13 'far':39 'know':14 'learn':9 'list':5 'make':24 'mess':28 'nano':37 'regex':19 'sens':25 'stuck':35 'suppos':22 'thing':7 've':27 'vim':1,15,30"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230647"
+editedAt: null
+createdAt: DateTimeImmutable @1703472141 {#1382
date: 2023-12-25 03:42:21.0 +01:00
}
+"title": 250152
}
2 => App\Entity\EntryComment {#1560
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#1692 …}
+body: "Thank you! I plan to, this has given me more motivation!"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703456840 {#1672
date: 2023-12-24 23:27:20.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deluxe0293@infosec.pub"
]
+children: Doctrine\ORM\PersistentCollection {#1691 …}
+nested: Doctrine\ORM\PersistentCollection {#1680 …}
+votes: Doctrine\ORM\PersistentCollection {#1683 …}
+reports: Doctrine\ORM\PersistentCollection {#1702 …}
+favourites: Doctrine\ORM\PersistentCollection {#1596 …}
+notifications: Doctrine\ORM\PersistentCollection {#1613 …}
-id: 249653
-bodyTs: "'given':8 'motiv':11 'plan':4 'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6227925"
+editedAt: null
+createdAt: DateTimeImmutable @1703456840 {#1549
date: 2023-12-24 23:27:20.0 +01:00
}
+"title": 249653
}
1 => App\Entity\EntryComment {#2084
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1551 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2078 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2384 …}
+body: "Oh gosh. There are regex competitions out there, aren’t there."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1703472881 {#2061
date: 2023-12-25 03:54:41.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@adespoton@lemmy.ca"
]
+children: Doctrine\ORM\PersistentCollection {#2076 …}
+nested: Doctrine\ORM\PersistentCollection {#2083 …}
+votes: Doctrine\ORM\PersistentCollection {#2085 …}
+reports: Doctrine\ORM\PersistentCollection {#2062 …}
+favourites: Doctrine\ORM\PersistentCollection {#2077 …}
+notifications: Doctrine\ORM\PersistentCollection {#2063 …}
-id: 250170
-bodyTs: "'aren':9 'competit':6 'gosh':2 'oh':1 'regex':5"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230754"
+editedAt: null
+createdAt: DateTimeImmutable @1703472881 {#2079
date: 2023-12-25 03:54:41.0 +01:00
}
+"title": 250170
}
0 => App\Entity\EntryComment {#2033}
]
-id: 24511
-titleTs: "'express':4 'first':2 'regular':3"
-bodyTs: "'-70160':243 '-9':302 '/g':312,314 '/the.hunger.games':240 '0':301 '10':123 '2012':241,332 '9':311 'a-z':298 'a-za-z0':307 'alreadi':131 'also':144 'archiv':187 'asid':18 'begin':363 'book':129 'care':22 'charact':76 'check':275 'clean':166 'cobbl':88 'collect':183 'command':293 'could':337 'd':26 'didn':377 'done':339 'dvd':182 'e.f':10 'edit':372 'egrep':160,201,221 'eie':295 'eleg':341 'end':263 'ever':139 'everyth':259 'exact':67 'exampl':239 'excit':359 'express':7,39,64,79,104,155,191,251,274,381 'feedback':348 'file':205,217 'file.tar.gz':220 'filenam':171 'first':35,190 'fix':373 'forward':257 'friedl':11 'full':291 'game':331 'generat':164 'get':210 'give':228 'group':252 'happi':57,345 'hunger':330 'jeffrey':9 'kv':224,305 'last':273 'lead':256 'learn':151 'leav':317 'life':17 'like':327 'list':169,203,231,322 'look':326 'lot':149 'm':30,49,55,120,223,303,334,344,357,362 'manipul':45 'master':5 'meant':105 'movi':176,233,324 'movielist':226,315 'mp4':244 'much':135 'name':213 'need':112 'never':95 'nobodi':14 'o':222 'one':196,277 'overflow':92 'p4':225,304 'past':86 'period':267 'pretti':31,321 'proud':32 'pull':172 'purpos':73 'read':4 'realli':96 'recogn':145 'regex':83,142,366,380 'regular':6,38 'remov':254 'replac':282 'rip':179 'say':379 'sed':162,248,292,294 'set':36 'share':27 'sinc':13 'singl':286 'slash':258 'someth':28 'space':280,287 'stack':91 'stuff':87 'sure':335 'tar':199,218 'tarbal':175,185,208 'text':47 'thought':24 'time':118 'titl':374 'tmdbid':242 'togeth':89 'tzvf':219 'understand':66,133,365 'understood':97 'use':82,158,197,247,370 've':2,81,178 'video':216 'way':126 'wife':21 'word':270 'work':50,100 'wrote':42,62,153,193 'z':300 'z0':310 'za':309"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1703542531
+visibility: "visible "
+apId: "https://lemmy.world/post/9942188"
+editedAt: DateTimeImmutable @1707607314 {#1996
date: 2024-02-11 00:21:54.0 +01:00
}
+createdAt: DateTimeImmutable @1703456131 {#2240
date: 2023-12-24 23:15:31.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1573 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2021 …}
+body: "Thank you!"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1703472178 {#2025
date: 2023-12-25 03:42:58.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@OpenStars@kbin.social"
]
+children: Doctrine\ORM\PersistentCollection {#2028 …}
+nested: Doctrine\ORM\PersistentCollection {#2012 …}
+votes: Doctrine\ORM\PersistentCollection {#2013 …}
+reports: Doctrine\ORM\PersistentCollection {#2035 …}
+favourites: Doctrine\ORM\PersistentCollection {#2036 …}
+notifications: Doctrine\ORM\PersistentCollection {#2144 …}
-id: 250153
-bodyTs: "'thank':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6230653"
+editedAt: null
+createdAt: DateTimeImmutable @1703472178 {#2011
date: 2023-12-25 03:42:58.0 +01:00
}
+"title": 250153
} |
|
Show voter details
|
89 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
90 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#2494 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "why-don-t-you-guys-scrobble"
+title: "why don't you guys scrobble?"
+url: null
+body: "From a privacy standpoint, i guess. I want to support open scrobbling with listenbrainz and the account isn’t directly linked to a real acc. Why shouldn’t I/ why don’t you?"
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 28
+favouriteCount: 33
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1702910420 {#2527
date: 2023-12-18 15:40:20.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2532 …}
+votes: Doctrine\ORM\PersistentCollection {#2535 …}
+reports: Doctrine\ORM\PersistentCollection {#2537 …}
+favourites: Doctrine\ORM\PersistentCollection {#2539 …}
+notifications: Doctrine\ORM\PersistentCollection {#2541 …}
+badges: Doctrine\ORM\PersistentCollection {#2543 …}
+children: [
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I just started scrobbling with Listenbrainz. I do it through an anonymous account, and the scrobbling comes through my self hosted music server.\n
\n
I’m trying it out to see if I like the recommendations. If I do I’ll consider it a fair trade off in privacy for now.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702766357 {#1439
date: 2023-12-16 23:39:17.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 228202
-bodyTs: "'account':13 'anonym':12 'come':17 'consid':41 'fair':44 'host':21 'like':33 'listenbrainz':6 'll':40 'm':25 'music':22 'privaci':48 'recommend':35 'scrobbl':4,16 'see':30 'self':20 'server':23 'start':3 'trade':45 'tri':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6086685"
+editedAt: null
+createdAt: DateTimeImmutable @1702766357 {#1435
date: 2023-12-16 23:39:17.0 +01:00
}
+"title": 228202
}
]
-id: 22705
-titleTs: "'guy':5 'scrobbl':6"
-bodyTs: "'acc':25 'account':17 'direct':20 'guess':6 'isn':18 'link':21 'listenbrainz':14 'open':11 'privaci':3 'real':24 'scrobbl':12 'shouldn':27 'standpoint':4 'support':10 'want':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1702848516
+visibility: "visible "
+apId: "https://programming.dev/post/7347767"
+editedAt: null
+createdAt: DateTimeImmutable @1702762116 {#2515
date: 2023-12-16 22:28:36.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
91 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#2494 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "why-don-t-you-guys-scrobble"
+title: "why don't you guys scrobble?"
+url: null
+body: "From a privacy standpoint, i guess. I want to support open scrobbling with listenbrainz and the account isn’t directly linked to a real acc. Why shouldn’t I/ why don’t you?"
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 28
+favouriteCount: 33
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1702910420 {#2527
date: 2023-12-18 15:40:20.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2532 …}
+votes: Doctrine\ORM\PersistentCollection {#2535 …}
+reports: Doctrine\ORM\PersistentCollection {#2537 …}
+favourites: Doctrine\ORM\PersistentCollection {#2539 …}
+notifications: Doctrine\ORM\PersistentCollection {#2541 …}
+badges: Doctrine\ORM\PersistentCollection {#2543 …}
+children: [
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I just started scrobbling with Listenbrainz. I do it through an anonymous account, and the scrobbling comes through my self hosted music server.\n
\n
I’m trying it out to see if I like the recommendations. If I do I’ll consider it a fair trade off in privacy for now.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702766357 {#1439
date: 2023-12-16 23:39:17.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 228202
-bodyTs: "'account':13 'anonym':12 'come':17 'consid':41 'fair':44 'host':21 'like':33 'listenbrainz':6 'll':40 'm':25 'music':22 'privaci':48 'recommend':35 'scrobbl':4,16 'see':30 'self':20 'server':23 'start':3 'trade':45 'tri':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6086685"
+editedAt: null
+createdAt: DateTimeImmutable @1702766357 {#1435
date: 2023-12-16 23:39:17.0 +01:00
}
+"title": 228202
}
]
-id: 22705
-titleTs: "'guy':5 'scrobbl':6"
-bodyTs: "'acc':25 'account':17 'direct':20 'guess':6 'isn':18 'link':21 'listenbrainz':14 'open':11 'privaci':3 'real':24 'scrobbl':12 'shouldn':27 'standpoint':4 'support':10 'want':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1702848516
+visibility: "visible "
+apId: "https://programming.dev/post/7347767"
+editedAt: null
+createdAt: DateTimeImmutable @1702762116 {#2515
date: 2023-12-16 22:28:36.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
92 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#2494 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "why-don-t-you-guys-scrobble"
+title: "why don't you guys scrobble?"
+url: null
+body: "From a privacy standpoint, i guess. I want to support open scrobbling with listenbrainz and the account isn’t directly linked to a real acc. Why shouldn’t I/ why don’t you?"
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 28
+favouriteCount: 33
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1702910420 {#2527
date: 2023-12-18 15:40:20.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2532 …}
+votes: Doctrine\ORM\PersistentCollection {#2535 …}
+reports: Doctrine\ORM\PersistentCollection {#2537 …}
+favourites: Doctrine\ORM\PersistentCollection {#2539 …}
+notifications: Doctrine\ORM\PersistentCollection {#2541 …}
+badges: Doctrine\ORM\PersistentCollection {#2543 …}
+children: [
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I just started scrobbling with Listenbrainz. I do it through an anonymous account, and the scrobbling comes through my self hosted music server.\n
\n
I’m trying it out to see if I like the recommendations. If I do I’ll consider it a fair trade off in privacy for now.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702766357 {#1439
date: 2023-12-16 23:39:17.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 228202
-bodyTs: "'account':13 'anonym':12 'come':17 'consid':41 'fair':44 'host':21 'like':33 'listenbrainz':6 'll':40 'm':25 'music':22 'privaci':48 'recommend':35 'scrobbl':4,16 'see':30 'self':20 'server':23 'start':3 'trade':45 'tri':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6086685"
+editedAt: null
+createdAt: DateTimeImmutable @1702766357 {#1435
date: 2023-12-16 23:39:17.0 +01:00
}
+"title": 228202
}
]
-id: 22705
-titleTs: "'guy':5 'scrobbl':6"
-bodyTs: "'acc':25 'account':17 'direct':20 'guess':6 'isn':18 'link':21 'listenbrainz':14 'open':11 'privaci':3 'real':24 'scrobbl':12 'shouldn':27 'standpoint':4 'support':10 'want':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1702848516
+visibility: "visible "
+apId: "https://programming.dev/post/7347767"
+editedAt: null
+createdAt: DateTimeImmutable @1702762116 {#2515
date: 2023-12-16 22:28:36.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
93 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
94 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#2494 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "why-don-t-you-guys-scrobble"
+title: "why don't you guys scrobble?"
+url: null
+body: "From a privacy standpoint, i guess. I want to support open scrobbling with listenbrainz and the account isn’t directly linked to a real acc. Why shouldn’t I/ why don’t you?"
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 28
+favouriteCount: 33
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1702910420 {#2527
date: 2023-12-18 15:40:20.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2532 …}
+votes: Doctrine\ORM\PersistentCollection {#2535 …}
+reports: Doctrine\ORM\PersistentCollection {#2537 …}
+favourites: Doctrine\ORM\PersistentCollection {#2539 …}
+notifications: Doctrine\ORM\PersistentCollection {#2541 …}
+badges: Doctrine\ORM\PersistentCollection {#2543 …}
+children: [
App\Entity\EntryComment {#1697}
]
-id: 22705
-titleTs: "'guy':5 'scrobbl':6"
-bodyTs: "'acc':25 'account':17 'direct':20 'guess':6 'isn':18 'link':21 'listenbrainz':14 'open':11 'privaci':3 'real':24 'scrobbl':12 'shouldn':27 'standpoint':4 'support':10 'want':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1702848516
+visibility: "visible "
+apId: "https://programming.dev/post/7347767"
+editedAt: null
+createdAt: DateTimeImmutable @1702762116 {#2515
date: 2023-12-16 22:28:36.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I just started scrobbling with Listenbrainz. I do it through an anonymous account, and the scrobbling comes through my self hosted music server.\n
\n
I’m trying it out to see if I like the recommendations. If I do I’ll consider it a fair trade off in privacy for now.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702766357 {#1439
date: 2023-12-16 23:39:17.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 228202
-bodyTs: "'account':13 'anonym':12 'come':17 'consid':41 'fair':44 'host':21 'like':33 'listenbrainz':6 'll':40 'm':25 'music':22 'privaci':48 'recommend':35 'scrobbl':4,16 'see':30 'self':20 'server':23 'start':3 'trade':45 'tri':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6086685"
+editedAt: null
+createdAt: DateTimeImmutable @1702766357 {#1435
date: 2023-12-16 23:39:17.0 +01:00
}
+"title": 228202
} |
|
Show voter details
|
95 |
DENIED
|
edit
|
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#2494 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "why-don-t-you-guys-scrobble"
+title: "why don't you guys scrobble?"
+url: null
+body: "From a privacy standpoint, i guess. I want to support open scrobbling with listenbrainz and the account isn’t directly linked to a real acc. Why shouldn’t I/ why don’t you?"
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 28
+favouriteCount: 33
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1702910420 {#2527
date: 2023-12-18 15:40:20.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2532 …}
+votes: Doctrine\ORM\PersistentCollection {#2535 …}
+reports: Doctrine\ORM\PersistentCollection {#2537 …}
+favourites: Doctrine\ORM\PersistentCollection {#2539 …}
+notifications: Doctrine\ORM\PersistentCollection {#2541 …}
+badges: Doctrine\ORM\PersistentCollection {#2543 …}
+children: [
App\Entity\EntryComment {#1697}
]
-id: 22705
-titleTs: "'guy':5 'scrobbl':6"
-bodyTs: "'acc':25 'account':17 'direct':20 'guess':6 'isn':18 'link':21 'listenbrainz':14 'open':11 'privaci':3 'real':24 'scrobbl':12 'shouldn':27 'standpoint':4 'support':10 'want':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1702848516
+visibility: "visible "
+apId: "https://programming.dev/post/7347767"
+editedAt: null
+createdAt: DateTimeImmutable @1702762116 {#2515
date: 2023-12-16 22:28:36.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I just started scrobbling with Listenbrainz. I do it through an anonymous account, and the scrobbling comes through my self hosted music server.\n
\n
I’m trying it out to see if I like the recommendations. If I do I’ll consider it a fair trade off in privacy for now.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702766357 {#1439
date: 2023-12-16 23:39:17.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 228202
-bodyTs: "'account':13 'anonym':12 'come':17 'consid':41 'fair':44 'host':21 'like':33 'listenbrainz':6 'll':40 'm':25 'music':22 'privaci':48 'recommend':35 'scrobbl':4,16 'see':30 'self':20 'server':23 'start':3 'trade':45 'tri':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6086685"
+editedAt: null
+createdAt: DateTimeImmutable @1702766357 {#1435
date: 2023-12-16 23:39:17.0 +01:00
}
+"title": 228202
} |
|
Show voter details
|
96 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#2494 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2142 …}
+slug: "why-don-t-you-guys-scrobble"
+title: "why don't you guys scrobble?"
+url: null
+body: "From a privacy standpoint, i guess. I want to support open scrobbling with listenbrainz and the account isn’t directly linked to a real acc. Why shouldn’t I/ why don’t you?"
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 28
+favouriteCount: 33
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1702910420 {#2527
date: 2023-12-18 15:40:20.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#2532 …}
+votes: Doctrine\ORM\PersistentCollection {#2535 …}
+reports: Doctrine\ORM\PersistentCollection {#2537 …}
+favourites: Doctrine\ORM\PersistentCollection {#2539 …}
+notifications: Doctrine\ORM\PersistentCollection {#2541 …}
+badges: Doctrine\ORM\PersistentCollection {#2543 …}
+children: [
App\Entity\EntryComment {#1697}
]
-id: 22705
-titleTs: "'guy':5 'scrobbl':6"
-bodyTs: "'acc':25 'account':17 'direct':20 'guess':6 'isn':18 'link':21 'listenbrainz':14 'open':11 'privaci':3 'real':24 'scrobbl':12 'shouldn':27 'standpoint':4 'support':10 'want':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1702848516
+visibility: "visible "
+apId: "https://programming.dev/post/7347767"
+editedAt: null
+createdAt: DateTimeImmutable @1702762116 {#2515
date: 2023-12-16 22:28:36.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I just started scrobbling with Listenbrainz. I do it through an anonymous account, and the scrobbling comes through my self hosted music server.\n
\n
I’m trying it out to see if I like the recommendations. If I do I’ll consider it a fair trade off in privacy for now.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702766357 {#1439
date: 2023-12-16 23:39:17.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@juli@programming.dev"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 228202
-bodyTs: "'account':13 'anonym':12 'come':17 'consid':41 'fair':44 'host':21 'like':33 'listenbrainz':6 'll':40 'm':25 'music':22 'privaci':48 'recommend':35 'scrobbl':4,16 'see':30 'self':20 'server':23 'start':3 'trade':45 'tri':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6086685"
+editedAt: null
+createdAt: DateTimeImmutable @1702766357 {#1435
date: 2023-12-16 23:39:17.0 +01:00
}
+"title": 228202
} |
|
Show voter details
|
97 |
DENIED
|
ROLE_ADMIN
|
null |
|
Show voter details
|
98 |
DENIED
|
ROLE_MODERATOR
|
null |
|
Show voter details
|