Skip to main content

Search

Items tagged with: regex


Hey Canadian nerds! I have held the domain registration for regex.ca for a very long time. When I lived in Canada it was my primary domain, but I haven't used it for years. Does anyone on the fediverse have a good use for it?

I'm going to release it but if you've got a good pitch I'll pay for a 1 year renewal and then transfer it to your ownership.

[edit: @blakecoverett has put regex.ca to appropriately goofy, human-centric use. huzzah for the Fediverse!]

#canada #regex #perl


#curl sometimes fails to access some servers. In most situations the problem is not in curl itself but on the server side. Example:

1. Fails: curl radissonhotels.com

2. Works: curl -A 'Mozilla/5.0 xx Chrome/119' radissonhotels.com

3. Fails: curl -A 'Mozilla/5.0 xx Chrome/118' radissonhotels.com

4. Fails, too: curl -A 'Mozilla/5.0 xx Chrome/1189' radissonhotels.com

Perhaps they perform #filtering to obtain improved #security? It's hard to tell, but any serious attacker surely knows how to spoof the user agent string and bypass such simple #regex


🆕 blog! “Regular Expressions make me feel like a powerful wizard - and that's not a good thing”

(This is a rant because I'm exhausted after debugging something. If you've made RegEx your whole personality, I'm sorry.) The other day I had to fix a multi-line Regular Expression (RegEx). After a few hours of peering at…

👀 Read more: shkspr.mobi/blog/2023/02/regul…

#ComputerScience #programming #regex


#Dev recommendations 6. #RegEx can be a hard topic for every new person starting with #programming. However don’t be scared of them because they are useful and fun! If you struggle to learn #RegularExpressions here are my favorite resources.
1. regex101.com. This website is your all in one toolbox for regular expressions, with tutorials, reference and a very advanced debugger which can visualise the expression’s output. All for free, and with #accessibility for the #blind out of the box.
2. youtube.com/watch?v=r6I-Ahc0HB…
A little course on regular expressions. The teaching is cler and the guy explains everything on the way.
As always, if you have any questions about #RegEx, #csharp #dotnet, #swift or anything else, feel free to ask me!