Skip to main content

Posts

How to Use Regex in JavaScript: A Beginner’s Guide

Hello everyone! Today I want to share with you about regex in JavaScript. Regex, short for regular expressions, are powerful tools for matching patterns in strings. They can help you validate input, extract data, replace text, and more.  Below are the content I'm going to share with you. You can also click on them to directly jump to that section: Creating a Regular Expression Literal Characters Special Characters Character Sets Alternation Anchors Lookahead and Lookbehind Flags String methods for Regex Creating a Regular Expression: Creating a Regular Expression is the process of defining a pattern that can be used to match specific strings or sets of characters within a larger body of text. In JavaScript, you can create a regular expression by enclosing a pattern between two forward slashes ( /pattern/ ) or by using the RegExp() constructor. For example, the regular expression /hello/ or RegExp('hello') can be used to match the string "hello" within a larger ...

Emoji Encryption: A Fun and Secure Way to Hide Your Messages

Hi everyone! In this blog post, I want to share with you a cool project that I created: a website that lets you encrypt and decrypt text in AES algorithm and copy different formats. 🙌 If you are wondering what AES algorithm is, it is a symmetric-key encryption technique that uses the same secret key to encrypt and decrypt data. It is one of the most secure and widely used encryption methods in the world. 🔐 But why would you want to encrypt your text? Well, there are many reasons. Maybe you want to send a secret message to someone, or you want to store some sensitive information on your computer or online, or you just want to have some fun with cryptography. 😎 Whatever your reason, my website can help you do that easily and quickly. All you need to do is enter your message and a secret key (optional) and click on the encrypt button. You will get a string of encrypted text that you can copy and paste anywhere you want. You can also choose different formats to copy, such as food emojis...