javascript-learning-labs

RegEx & Parsing

πŸ“ Description

This section explores how regular expressions (RegEx) can be used to analyze, validate, and transform text data in JavaScript.

The labs demonstrate both interactive DOM-based tools and utility functions that rely on pattern matching to process text.


Interactive Projects

πŸ›‘οΈ Spam Filter

A DOM-based tool that analyzes user input and detects potential spam patterns using regular expressions.

πŸ”— Project: Spam Filter


πŸ” Palindrome Checker

A simple interface that determines whether a phrase is a palindrome after normalizing punctuation, spacing, and capitalization.

πŸ”— Project: Palindrome Checker


πŸ§ͺ RegEx Sandbox

An interactive environment for testing custom regular expressions against arbitrary text input.

πŸ”— Project: RegEx Sandbox


Utility Labs

πŸ”— Spinal Case Converter

Converts text into spinal-case by normalizing word separators and camelCase boundaries.

πŸ“„ File: spinal-case-converter.js


🐷 Pig Latin Translator

Transforms English words into Pig Latin based on vowel and consonant patterns.

πŸ“„ File: pig-latin-translator.js


πŸ”„ Smart Replace

Replaces a target word in a sentence while preserving the original word’s capitalization.

πŸ“„ File: smart-replace.js


πŸ’‘ Topic Reflection

Regular expressions provide a concise and powerful way to describe patterns in text. These labs demonstrate how RegEx can simplify tasks such as validation, filtering, and text transformation.

Through these projects, pattern matching becomes a practical tool for building input validation systems, parsing utilities, and interactive text-processing tools.