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
FEED GUCCI LOAFERS FUCK CHUCK CLEAN IT UP FUCK JANNIES PARK AVENUE MANICURE AND CLEAN IT UP FEED CHUCK’S FANCY GERMAN CAR COPE COPE JANNY PARK AVENUE MANICURE JANNIES CLEAN IT UP FEED FLOYD I CAN’T SEETHE FUCK SNEED’S ON LEMMY SEETHE SEED I CAN’T FLOYD CLEAN IT UP SEETHE DILATE FANCY GERMAN CAR PARK AVENUE MANICURE HOT POCKETS SUCK SEED JANNY SUCK CHUCK’S AND ON LEMMY SNEED I CAN’T CHUCK CHUCK’S FLOYD I CAN’T GUCCI LOAFERS
AND SNEED’S COPE FANCY GERMAN CAR CITY SLICKER JANNY AND CHUCK SEED FOR FREE FANCY GERMAN CAR CHUCK FUCK CHUCK’S FOR FREE FUCK SUCK CLEAN IT UP PARK AVENUE MANICURE CHUCK’S CLEAN IT UP FOR FREE SEETHE SNEED FUCK FOR FREE JANNY HOT POCKETS GUCCI LOAFERS DILATE GUCCI LOAFERS FOR FREE DILATE DILATE PARK AVENUE MANICURE CLEAN IT UP CHUCK FANCY GERMAN CAR JANNY FANCY GERMAN CAR PARK AVENUE MANICURE FLOYD CHUCK CHUCK’S FANCY GERMAN CAR SEETHE FLOYD FOR FREE HOT POCKETS SEETHE
I CAN’T SEETHE SNEED SEED JANNY FLOYD CHUCK’S GUCCI LOAFERS JANNY FLOYD JANNIES SEETHE PARK AVENUE MANICURE CHUCK SEETHE GUCCI LOAFERS AND SEETHE I CAN’T SEED SEETHE CLEAN IT UP GUCCI LOAFERS HOT POCKETS HOT POCKETS HOT POCKETS PARK AVENUE MANICURE I CAN’T SNEED’S FUCK ON LEMMY GUCCI LOAFERS JANNY CLEAN IT UP DILATE SUCK SNEED’S SNEED ON LEMMY PARK AVENUE MANICURE AND I CAN’T JANNIES HOT POCKETS SEED CITY SLICKER CHUCK JANNY DILATE SNEED
COPE ON LEMMY JANNY CITY SLICKER I CAN’T JANNIES COPE JANNY ON LEMMY CHUCK COPE CHUCK FEED SNEED’S FLOYD CHUCK ON LEMMY FOR FREE JANNY FEED DILATE CLEAN IT UP FLOYD SUCK DILATE JANNY SEETHE HOT POCKETS FUCK HOT POCKETS CHUCK DILATE FOR FREE COPE SEED AND CITY SLICKER JANNY SEED CITY SLICKER SEED FUCK FUCK PARK AVENUE MANICURE JANNY ON LEMMY FLOYD HOT POCKETS CLEAN IT UP FLOYD
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
SEED HOT POCKETS SEETHE PARK AVENUE MANICURE PARK AVENUE MANICURE SNEED FEED FLOYD CHUCK SEED SEETHE FOR FREE SNEED FANCY GERMAN CAR I CAN’T SNEED’S SNEED’S HOT POCKETS CITY SLICKER FEED FEED GUCCI LOAFERS SNEED’S JANNY AND SEETHE GUCCI LOAFERS CITY SLICKER FEED HOT POCKETS HOT POCKETS I CAN’T JANNY COPE HOT POCKETS FLOYD COPE CHUCK PARK AVENUE MANICURE SNEED FLOYD ON LEMMY GUCCI LOAFERS AND SNEED’S SEED AND COPE GUCCI LOAFERS JANNIES