Blog url: https://www.nowenkottage.com/regex
Please find the project structure below
regex_blog/
├── large_codebase/
│ ├── lib/
│ │ ├── pattern/
│ │ │ └── phone.js
│ │ └── validator/
│ │ └── phone.js
│ ├── main.js
│---usecases/
│ └── exercise.js
├── .gitignore
├── ex.js
├── ex.py
├── README.md
└── RegexExamples.java
This repository contains three runnable components:
- Regex examples (JavaScript, Python, and Java)
- Large codebase example (modular pattern + validator structure)
- Use-case demonstrations
Available in all three languages: ex.js, ex.py, and RegexExamples.java
cd ./regex_blog
node ex.js
(Recommended: use a virtual environment such as Conda)
conda activate <env_name>
python ex.py
Ensure the JDK is installed, then:
javac RegexExamples.java
java RegexExamples
cd ./regex_blog/large_codebase
node main.js
cd ./regex_blog/usecases
node exercise.js