Online PHP preg_match() Tester - Regular Expression Tool
Test PHP regular expressions with preg_match() and preg_match_all() online. Visualize matches with syntax highlighting and popular regex patterns.
edit
Simple Regex Tester
Modifiers & Quick Builder
keyboard_arrow_down
Subject Text
Visit https://github.com/user/repo for more info or check http://example.com/path/to/page
Full PHP regex (copy & paste):
Regex explanation:
- Capturing group "protocol"
- Literal "https?"
- Literal ":"
- Literal "\/"
- Literal "\/"
- Capturing group "domain"
- Character class (uppercase letters A-Z, lowercase letters a-z, digits 0-9), one or more
- Capturing group "path"
- Literal "\/"
- Character class (uppercase letters A-Z, lowercase letters a-z, digits 0-9), zero or more
- Literal "?"
analytics
Results
check_circle
2 Match(es)
Match List
PHP Regex Tester. 'preg_match' and 'preg_match_all'
Use this tool to experiment with regular expressions using preg_match. Enter your text and pattern to see highlighted matches in real time. Browse popular regex examples for emails, URLs, numbers, and more. Each pattern comes with a clear explanation to help you understand how it works. This makes learning and debugging faster, whether you are testing snippets or building complex expressions.
Comments
No comments yet
Be the first to share your thoughts!