Jump to content

Welcome to CodeNameJessica

Welcome to CodeNameJessica!

💻 Where tech meets community.

Hello, Guest! 👋
You're just a few clicks away from joining an exclusive space for tech enthusiasts, problem-solvers, and lifelong learners like you.

🔐 Why Join?
By becoming a member of CodeNameJessica, you’ll get access to:
In-depth discussions on Linux, Security, Server Administration, Programming, and more
Exclusive resources, tools, and scripts for IT professionals
A supportive community of like-minded individuals to share ideas, solve problems, and learn together
Project showcases, guides, and tutorials from our members
Personalized profiles and direct messaging to collaborate with other techies

🌐 Sign Up Now and Unlock Full Access!
As a guest, you're seeing just a glimpse of what we offer. Don't miss out on the complete experience! Create a free account today and start exploring everything CodeNameJessica has to offer.

Blogs

Featured Entries

In regular expressions, round brackets (()) are used for grouping. Grouping allows you to apply operators to multiple tokens at once. For example, you can make an entire group optional or repeat the entire group using repetition operators. Basic Usage For example: Set(Value)? This pattern matches: "Set" "SetValue" The round brackets group "Value", and the question mark makes it optional. Note: Square brackets ([]) define character classes. Curly braces ({}) specify repetition counts. Only ro
In addition to the question mark, regex provides two more repetition operators: the asterisk (*) and the plus (+). Basic Usage The * (star) matches the preceding token zero or more times. The + (plus) matches the preceding token one or more times. For example: <[A-Za-z][A-Za-z0-9]*> This pattern matches HTML tags without attributes: <[A-Za-z] matches the first letter. [A-Za-z0-9]* matches zero or more alphanumeric characters after the first letter. This regex will match tags like: <
The question mark (?) makes the preceding token in a regular expression optional. This means that the regex engine will try to match the token if it is present, but it won’t fail if the token is absent. Basic Usage For example: colou?r This pattern matches both "colour" and "color." The u is optional due to the question mark. You can make multiple tokens optional by grouping them with round brackets and placing a question mark after the closing bracket: Nov(ember)? This regex matches both "Nov"
Previously, we explored how character classes allow you to match a single character out of several possible options. Alternation, on the other hand, enables you to match one of several possible regular expressions. The vertical bar or pipe symbol (|) is used for alternation. It acts as an OR operator within a regex. Basic Syntax To search for either "cat" or "dog," use the pattern: cat|dog You can add more options as needed: cat|dog|mouse|fish The regex engine will match any of these options. Fo
The \b metacharacter is an anchor, similar to the caret (^) and dollar sign ($). It matches a zero-length position called a word boundary. Word boundaries allow you to perform “whole word” searches in a string using patterns like \bword\b. What is a Word Boundary? A word boundary occurs at three possible positions in a string: Before the first character if it is a word character. After the last character if it is a word character. Between two characters where one is a word character and the ot
In previous sections, we explored how literal characters and character classes operate in regular expressions. These match specific characters in a string. Anchors, however, are different. They match positions in the string rather than characters, allowing you to "anchor" your regex to the start or end of a string or line. Using the Caret (^) Anchor The caret (^) matches the position before the first character of the string. For example: ^a applied to "abc" matches "a." ^b does not match "abc"
The dot, or period, is one of the most versatile and commonly used metacharacters in regular expressions. However, it is also one of the most misused. The dot matches any single character except for newline characters. In most regex flavors discussed in this tutorial, the dot does not match newlines by default. This behavior stems from the early days of regex when tools were line-based and processed text line by line. In such cases, the text would not contain newline characters, so the dot could
Character classes, also known as character sets, allow you to define a set of characters that a regex engine should match at a specific position in the text. To create a character class, place the desired characters between square brackets. For instance, to match either an a or an e, use the pattern [ae]. This can be particularly useful when dealing with variations in spelling, such as in the regex gr[ae]y, which will match both "gray" and "grey." Key Points About Character Classes: A character
By: Janus Atienza Thu, 09 Jan 2025 17:34:55 +0000 QR codes have revolutionized how we share information, offering a fast and efficient way to connect physical and digital worlds. In the Linux ecosystem, the adaptability of QR codes aligns seamlessly with the open-source philosophy, enabling developers, administrators, and users to integrate QR code functionality into various workflows. Leveraging a qr code generator free can simplify this process, making it accessible even for those new to th
by: Geoff Graham Thu, 09 Jan 2025 16:16:15 +0000 I wrote a post for Smashing Magazine that was published today about this thing that Chrome and Safari have called “Tight Mode” and how it impacts page performance. I’d never heard the term until DebugBear’s Matt Zeunert mentioned it in a passing conversation, but it’s a not-so-new deal and yet there’s precious little documentation about it anywhere. So, Matt shared a couple of resources with me and I used those to put some notes together that
Understanding how a regex engine processes patterns can significantly improve your ability to write efficient and accurate regular expressions. By learning the internal mechanics, you’ll be better equipped to troubleshoot and refine your regex patterns, reducing frustration and guesswork when tackling complex tasks. Types of Regex Engines There are two primary types of regex engines: Text-Directed Engines (also known as DFA - Deterministic Finite Automaton) Regex-Directed Engines (also known as
Regular expressions can also match non-printable characters using special sequences. Here are some common examples: \t: Tab character (ASCII 0x09) \r: Carriage return (ASCII 0x0D) \n: Line feed (ASCII 0x0A) \a: Bell (ASCII 0x07) \e: Escape (ASCII 0x1B) \f: Form feed (ASCII 0x0C) \v: Vertical tab (ASCII 0x0B) Keep in mind that Windows text files use "\r\n" to terminate lines, while UNIX text files use "\n". Hexadecimal and Unicode Characters You can include any character in your regex usin
To go beyond matching literal text, regex engines reserve certain characters for special functions. These are known as metacharacters. The following characters have special meanings in most regex flavors discussed in this tutorial: [ \ ^ $ . | ? * + ( ) If you need to use any of these characters as literals in your regex, you must escape them with a backslash (\). For instance, to match "1+1=2", you would write the regex as: 1\+1=2 Without the backslash, the plus sign would be interpreted as a q
The simplest regular expressions consist of literal characters. A literal character is a character that matches itself. For example, the regex «a» will match the first occurrence of the character "a" in a string. Consider the string "Jack is a boy": this pattern will match the "a" after the "J". It’s important to note that the regex engine doesn’t care where the match occurs within a word unless instructed otherwise. If you want to match entire words, you’ll need to use word boundaries, a concep
A regular expression engine is a software component that processes regex patterns, attempting to match them against a given string. Typically, you won’t interact directly with the engine. Instead, it operates behind the scenes within applications and programming languages, which invoke the engine as needed to apply the appropriate regex patterns to your data or files. Variations Across Regex Engines As is often the case in software development, not all regex engines are created equal. Different
Table of Contents Regular Expression Tutorial Different Regular Expression Engines Literal Characters Special Characters Non-Printable Characters First Look at How a Regex Engine Works Internally Character Classes or Character Sets The Dot Matches (Almost) Any Character Start of String and End of String Anchors Word Boundaries Alternation with the Vertical Bar or Pipe Symbol Optional Items Repetition with Star and Plus Grouping with Round Brackets Named Capturing Groups Unicode Re
Prerequisites Before proceeding, ensure the following components are in place: BackupNinja Installed Verify BackupNinja is installed on your Linux server. Command: sudo apt update && sudo apt install backupninja Common Errors & Solutions: Error: "Unable to locate package backupninja" Ensure your repositories are up-to-date: sudo apt update Enable the universe repository on Ubuntu/Debian systems: sudo add-apt-
by: Zainab Sutarwala Thu, 09 Jan 2025 10:46:00 +0000 Are you looking for the best free Nodejs hosting platforms? You are at the right place. Node.js is a highly popular JavaScript open-source server environment used by many developers across the world. Right from its commencement in 2009, the server has grown in huge popularity and is used by a lot of businesses. The industry and business sectors primarily make use of Node.js. At present, Node.js is a most loved and well-known open-source serve
by: Abhishek Prakash The holidays are over and so do the Tuxmas Days. 12 days of 12 new features, changes and announcements. As mentioned on Tuxmas Day 11, It's FOSS Lifetime membership now also gets you lifetime Reader-level membership of Linux Handbook, our other portal focused on sysadmin, DevOps and self-hosting. If you are one of the 73 people (so far) who opted for the Lifetime plan, you'll get a separate email on Linux Handbook's membership. Meanwhile, please download the 'Linux for De
As a tech-enthusiast content creator, I'm always on the lookout for innovative ways to connect with my audience and share my passion for technology and self-sufficiency. But as my newsletter grew in popularity, I found myself struggling with the financial burden of relying on external services like Mailgun - a problem many creators face when trying to scale their outreach efforts without sacrificing quality. That's when I discovered Listmonk, a free and open-source mailing list manager that not
by: Zainab Sutarwala Tue, 07 Jan 2025 11:33:00 +0000 LambdaTest has today emerged as a popular name especially in the field of cross-browser testing, helping businesses and developers to ensure the functionality and compatibility of their web applications over a wide variety of devices and browsers. With the quick evolution of web technologies and the diverse landscape of devices and browsers, cross-browsing testing today has become an indispensable feature of web development. LambdaTest mainly
by: Chris Coyier Mon, 06 Jan 2025 20:47:37 +0000 Like Miriam Suzanne says: I like the idea of controlling my own experience when browsing and using the web. Bump up that default font size, you’re worth it. Here’s another version of control. If you publish a truncated RSS feed on your site, but the site itself has more content, I reserve the right to go fetch that content and read it through a custom RSS feed. I feel like that’s essentially the same thing as if I had an elaborate us
by: Andy Bell Mon, 06 Jan 2025 14:58:46 +0000 I’ll set out my stall and let you know I am still an AI skeptic. Heck, I still wrap “AI” in quotes a lot of the time I talk about it. I am, however, skeptical of the present, rather than the future. I wouldn’t say I’m positive or even excited about where AI is going, but there’s an inevitability that in development circles, it will be further engrained in our work. We joke in the industry that the suggestions that AI gives us are more often than

Important Information

Terms of Use Privacy Policy Guidelines We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.