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