Search
Extract a Number from a String with JavaScript
16.1.2024
User input from HTML form fields is generally provided to JavaScript as a string. We’ve lived with that fact for decades but sometimes developers need to extract numbers from that string. There are multiple ways to get those numbers but let’s rely on regular expressions to extract those...
URL.canParse
17.7.2023
Parsing of URLs on the client side has been a common practice for two decades. The early days included using illegible regular expressions but the JavaScript specification eventually evolved into a new URL method of parsing URLs. While URL is incredibly useful when a valid URL is provided,...
Collective #720
14.7.2022
CSS-only shaders * Siter.io * Statements Vs. Expressions * Building your website using Jigsaw
The post Collective #720 appeared first on Codrops
Decentralized TV Advances as Cudos Ties Up With Sator and Crypto-Themed Series “Hold on for Dear Life”
17.8.2021
As blockchain technology expands its horizons, attention is turning towards Hollywood with the introduction of a brand new decentralized series titled “HODL,” which will feature fan engagement tokens and highlight mining services-for-all. Audience to Gain Exposure to Token Incentives...
Regular Expression Match Groups
26.4.2021
Regular expressions are incredibly powerful but can be difficult to maintain. They’re a skill you learn on the job and, when the suits walk by, make you look incredibly smart if you have a few up on your screen. How can we solve the maintainability problem? With a match groups, as Addy Osmani...
New Report Studies Satoshi Nakamoto’s Inconsistent British and American Writing Techniques
7.1.2021
On December 31, 2020, a new report was published that studies Satoshi Nakamoto’s writing style, the creator’s use of expressions, and spelling. The new examination shows Satoshi’s spelling and American and British wording indicates it was very inconsistent and littered with...
Match Emojis with Regular Expressions
19.8.2020
When experimenting with unicode property escapes, to identify accented letters in strings, it reminded me of a question I had a few years ago: what is the best way to identify and then replace emojis in a string? I first noticed this practice when using emojis in Facebook — sometimes Facebook...
Match Accented Letters with Regular Expressions
6.8.2020
Regular expressions are used for a variety of tasks but the one I see most often is input validation. Names, dates, numbers…we tend to use regular expressions for everything, even when we probably shouldn’t. The most common syntax for checking alphabetic characters is A-z but what...
Reverse Lookups with JavaScript
28.8.2019
I’ve always loved exploring regular expressions because they’re one of those skills that’s never taught in school — you need to pick them up on the fly, messing up and fixing them along the way. Regex’s are incredibly powerful, and one power they have are referred...
The Most Important Aspect of Bitcoin Is the Separation of Money and State
19.8.2019
Many cryptocurrency supporters believe the technology allows for the separation of money and state in a manner that’s never been seen before. Governments inflict two forms of robbery against nonviolent citizens by forcing them to pay taxes while also stealing from them silently through...