Avatar of tmajor99
tmajor99
 asked on

Regular Expression Help - finding string of certain length

I need help with a regular expression.  The following expression identifies strings of 4 bytes or more.  However, it does not seem to work when the string has a special character like "-".  

\w{4,}

For Example;

1234                       -->   Found.
23-44                     --> Not found

How can I get this to work with special characters?
Regular Expressions

Avatar of undefined
Last Comment
tmajor99

8/22/2022 - Mon
Dan Craciun

[\w-]{4,}

HTH,
Dan
ASKER CERTIFIED SOLUTION
Terry Woods

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
tmajor99

ASKER
n/a
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck