Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can some one let me know what exactly below regular expression means?

big bro[A-Za-z0-9$\p{L}+\-*']*

What I have tried:

Can some one let me know what exactly below regular expression means?

big bro[A-Za-z0-9$\p{L}+\-*']*
Posted
Updated 25-Jun-22 18:34pm

Just a few interesting links to help building and debugging RegEx.
Here is a link to RegEx documentation:
perlre - perldoc.perl.org[^]
Here is links to tools to help build RegEx and debug them:
.NET Regex Tester - Regex Storm[^]
Expresso Regular Expression Tool[^]
RegExr: Learn, Build, & Test RegEx[^]
Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript[^]
This one show you the RegEx as a nice graph which is really helpful to understand what is doing a RegEx: Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.[^]
This site also show the Regex in a nice graph but can't test what match the RegEx: Regexper[^]
 
Share this answer
 
Regular expressions can be complicated, not that one is pretty simple:
A fixed string "big bro"

Followed by
Any of the characters between the '[' and ']', repeated zero or more times.
The characters include all alphanumeric letters and digits, plus a range of special characters including the Unicode alpha characters (the "\p{L}" part)

So "big bro" will match, as will "big broX", "big bro9", and "big bro***" but "big bro***%***" with only match the "big bro***" part.

It you are goign to play with Regexes, then Get a copy of Expresso[^] - it's free, and it examines and generates Regular expressions.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900