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.

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 using its hexadecimal or Unicode code point. For example:

  • \x09: Matches a tab character (same as \t).

  • \xA9: Matches the copyright symbol (Β©) in the Latin-1 character set.

  • \u20AC: Matches the euro currency sign (€) in Unicode.

Additionally, most regex flavors support control characters using the syntax \cA through \cZ, which correspond to Control+A through Control+Z. For example:

  • \cM: Matches a carriage return, equivalent to \r.

In XML Schema regex, the token Β«\cΒ» is a shorthand for matching any character allowed in an XML name.

When working with Unicode regex engines, it’s best to use the \uFFFF notation to ensure compatibility with a wide range of characters.

Table of Contents

  1. Regular Expression Tutorial

  2. Different Regular Expression Engines

  3. Literal Characters

  4. Special Characters

  5. Non-Printable Characters

  6. First Look at How a Regex Engine Works Internally

  7. Character Classes or Character Sets

  8. The Dot Matches (Almost) Any Character

  9. Start of String and End of String Anchors

  10. Word Boundaries

  11. Alternation with the Vertical Bar or Pipe Symbol

  12. Optional Items

  13. Repetition with Star and Plus

  14. Grouping with Round Brackets

  15. Named Capturing Groups

  16. Unicode Regular Expressions

  17. Regex Matching Modes

  18. Possessive Quantifiers

  19. Understanding Atomic Grouping in Regular Expressions

  20. Understanding Lookahead and Lookbehind in Regular Expressions (Lookaround)

  21. Testing Multiple Conditions on the Same Part of a String with Lookaround

  22. Understanding the \G Anchor in Regular Expressions

  23. Using If-Then-Else Conditionals in Regular Expressions

  24. XML Schema Character Classes and Subtraction Explained

  25. Understanding POSIX Bracket Expressions in Regular Expressions

  26. Adding Comments to Regular Expressions: Making Your Regex More Readable

  27. Free-Spacing Mode in Regular Expressions: Improving Readability

0 Comments

Recommended Comments

There are no comments to display.

Guest
Add a comment...

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.