Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Regex Validation, Flags, and Text Processing in JavaScript

via CodeSignal

Overview

Move into advanced regex techniques for robust data processing. You'll write patterns to validate user input, control matching with flags for readability and power, and use lookaheads for complex conditional logic. Finally, you'll learn to process large text files efficiently, a key skill for real-world data.

Syllabus

  • Unit 1: Regex Input Validation
    • Fix the Username Validation Bug
    • Strengthen Password Validation Rules
    • Write a Product ID Validator from Scratch
  • Unit 2: Regex Flags and Text Processing
    • Fix the Case-Insensitive Search Function
    • Refactoring URL Patterns with String Fragments
    • Extracting Chapter Titles with Multiline Mode
    • Extracting Multiline Code Blocks with the DotAll Flag
  • Unit 3: Lookaheads in JavaScript Regex
    • Extract EUR Prices with Positive Lookaheads
    • Debug Negative Lookahead for Password Extraction
    • Strengthen Password Validation with Special Characters
    • Username Validation with Negative Lookaheads
    • Extract Priority Keywords with Lookaheads
  • Unit 4: Iterating Regex Matches Efficiently
    • Iterative Log Parser with Named Capture Groups
    • Processing Match Objects to Calculate Log Statistics
    • Analyze Game Server Chat Log with exec() Iteration
    • Processing Multi-Entry Order Data with exec()

Reviews

Start your review of Regex Validation, Flags, and Text Processing in JavaScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.