open up google
search for exactly the result you want
find an answer on stack exchange that isn’t just “nevermind figured it out”
copy and paste into your code
Coworker: “Hey, I got this really cool new tool that will solve this data filtering problem you had” Me:: “Cool! Let me check out the filters!” Coworker. “They are awesome and work by RegEx!” Me: “Nope, not interested.” Coworker: “But… it fits your needs exactly” Me: “I. said. NOT. INTERESTED!”
while :; do curl -X POST -d '{"text": "Removed by mod" }' https://lemmy.ml/post/13463433; done
Nothing to see here folks
Is there a less arcane way to perform searches similarly to regex?
There’s other, more verbose, regular expression languages, for instance SRFI-115 for Scheme. But the hard part isn’t the syntax, but actually thinking about patterns, so it won’t help you any.
Just get the O’Reilly bat book and learn. So what if it overwrites 10% of your brain and you can’t remember your mother’s face, you’ll have a useful skill.
Learn the regex rules.
Step 3: Name your cat ‘Regex’
Wrote a regex today and realized it looked like two people waving a hand ;D
Donut regex when???
I don’t know all of the regex rules (look ahead/behind, etc); but it’s honestly not that bad. If you can learn the syntax for a programming language, you can learn the basics of regex…
Sure, learning basics of regex is not that hard, but complex regex expressions can easily become impenetrable. I actually like the verbal expressions idea where you write out the regex using a long form and that gets compiled into the actual regex, e.g:
const tester = VerEx() .startOfLine() .then('http') .maybe('s') .then('://') .maybe('www.') .anythingBut(' ') .endOfLine();
That seems like the best of both world approach to me.
My brief experience with LINQ has also taught me to prefer this type of thing as well; though I still use regex on a daily basis most of the time, given my environment.
SNEED HOT POCKETS SNEED SEED JANNIES JANNIES CITY SLICKER FLOYD SEETHE ON LEMMY PARK AVENUE MANICURE HOT POCKETS COPE CLEAN IT UP JANNIES SNEED’S FOR FREE PARK AVENUE MANICURE FUCK ON LEMMY CITY SLICKER PARK AVENUE MANICURE AND GUCCI LOAFERS SEED DILATE CITY SLICKER JANNIES JANNY FANCY GERMAN CAR SNEED HOT POCKETS SEED FEED FLOYD SUCK CHUCK’S PARK AVENUE MANICURE FANCY GERMAN CAR FANCY GERMAN CAR CHUCK’S GUCCI LOAFERS FLOYD COPE COPE SEETHE SNEED AND CHUCK’S SEED
that toast must really be evil…
SEETHE FEED ON LEMMY FUCK SEED CITY SLICKER FUCK FUCK FOR FREE SUCK HOT POCKETS PARK AVENUE MANICURE GUCCI LOAFERS ON LEMMY FANCY GERMAN CAR CHUCK’S DILATE CLEAN IT UP FLOYD AND FANCY GERMAN CAR JANNIES HOT POCKETS ON LEMMY ON LEMMY DILATE CITY SLICKER SNEED CITY SLICKER CHUCK’S JANNY PARK AVENUE MANICURE CITY SLICKER DILATE AND SEETHE SEETHE FEED GUCCI LOAFERS FLOYD SEETHE PARK AVENUE MANICURE I CAN’T CLEAN IT UP I CAN’T SUCK CHUCK SUCK FANCY GERMAN CAR FOR FREE
SUCK CLEAN IT UP FOR FREE CHUCK SNEED’S DILATE JANNY SEETHE SEED HOT POCKETS ON LEMMY HOT POCKETS PARK AVENUE MANICURE I CAN’T AND I CAN’T FANCY GERMAN CAR FUCK CLEAN IT UP FANCY GERMAN CAR SNEED’S FOR FREE SUCK FANCY GERMAN CAR FEED DILATE GUCCI LOAFERS COPE SUCK ON LEMMY CHUCK’S FANCY GERMAN CAR ON LEMMY FUCK FEED AND CHUCK’S DILATE SEETHE FUCK DILATE CHUCK’S COPE FLOYD SEETHE AND I CAN’T GUCCI LOAFERS ON LEMMY FLOYD
SEETHE SNEED’S SEED FANCY GERMAN CAR ON LEMMY AND DILATE CLEAN IT UP CHUCK CHUCK COPE DILATE FOR FREE FEED FUCK CHUCK SUCK SNEED ON LEMMY CHUCK’S I CAN’T FANCY GERMAN CAR GUCCI LOAFERS FUCK FOR FREE CHUCK’S JANNIES ON LEMMY AND DILATE SEED HOT POCKETS SNEED HOT POCKETS HOT POCKETS SEED CHUCK’S CITY SLICKER CHUCK FOR FREE FUCK CHUCK’S FEED DILATE CLEAN IT UP CHUCK’S CHUCK’S SUCK SEED CITY SLICKER
FEED JANNY COPE DILATE SNEED FEED COPE GUCCI LOAFERS AND I CAN’T CITY SLICKER SEETHE FUCK FOR FREE SEED GUCCI LOAFERS I CAN’T PARK AVENUE MANICURE ON LEMMY CHUCK AND AND DILATE CITY SLICKER JANNIES JANNY FANCY GERMAN CAR GUCCI LOAFERS CHUCK’S CLEAN IT UP SNEED’S JANNIES HOT POCKETS SNEED CHUCK COPE FOR FREE SUCK SEETHE CHUCK’S SEED CHUCK’S FUCK FLOYD SNEED’S CITY SLICKER GUCCI LOAFERS SEED ON LEMMY COPE
SUCK CLEAN IT UP CHUCK’S SUCK AND I CAN’T JANNIES FLOYD CLEAN IT UP FANCY GERMAN CAR JANNIES CHUCK’S CITY SLICKER JANNY SEED CITY SLICKER AND FUCK SEETHE SNEED CHUCK FOR FREE CHUCK’S SNEED SNEED’S COPE CITY SLICKER SNEED’S SNEED’S AND CHUCK’S CHUCK’S FLOYD AND JANNY I CAN’T PARK AVENUE MANICURE CITY SLICKER CITY SLICKER CHUCK FUCK CITY SLICKER ON LEMMY CHUCK ON LEMMY I CAN’T CHUCK’S HOT POCKETS CHUCK’S SUCK
SEED CITY SLICKER ON LEMMY HOT POCKETS HOT POCKETS SEETHE ON LEMMY GUCCI LOAFERS COPE FOR FREE FUCK CITY SLICKER SNEED AND SEETHE FUCK ON LEMMY PARK AVENUE MANICURE JANNIES FUCK I CAN’T JANNIES CHUCK COPE ON LEMMY FEED DILATE HOT POCKETS SEED SEED JANNIES SUCK CHUCK ON LEMMY PARK AVENUE MANICURE SNEED FANCY GERMAN CAR DILATE SEED CITY SLICKER JANNY ON LEMMY SEETHE CHUCK COPE SEED GUCCI LOAFERS SUCK DILATE JANNIES
FOR FREE JANNY CHUCK’S SEED DILATE FEED CITY SLICKER SEED SEED SEETHE SEED FOR FREE FANCY GERMAN CAR SEETHE CLEAN IT UP COPE PARK AVENUE MANICURE COPE FANCY GERMAN CAR FEED PARK AVENUE MANICURE HOT POCKETS I CAN’T HOT POCKETS SNEED ON LEMMY FLOYD FANCY GERMAN CAR HOT POCKETS I CAN’T GUCCI LOAFERS SNEED SEETHE COPE FOR FREE SNEED’S CHUCK PARK AVENUE MANICURE COPE JANNY CLEAN IT UP FANCY GERMAN CAR DILATE FANCY GERMAN CAR DILATE JANNY CHUCK’S JANNY SUCK COPE