Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5965545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:38:46+00:00 2026-05-22T19:38:46+00:00

I am really struggling trying to get a regex expression to work with findstr.

  • 0

I am really struggling trying to get a regex expression to work with findstr. I have the following in a text file called filelist.txt as an example….

test1
test12
test13
test14
uyt*
test16
test19
test47
nam;
help367
file1
named665

I also have a set of acceptable characters which are A-Z, a-z, 0-9, space ./-_

I want to run findstr and have it return all the results which contain characters that are not acceptable, in this case it should return the following….

**nam;
uyt***

I am using the following command

findstr /r /v "[^a-zA-Z0-9_./-]" filelist.txt

But this is returning the opposite of what I want, it is displaying all entries that don’t have special characters in them. I have tried substituting /v for /x to display the matches but this does not return anything.

Can anyone help???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:38:47+00:00Added an answer on May 22, 2026 at 7:38 pm

    Try:

    findstr /b /e /r /v /C:"[a-zA-Z0-9_ ./-]*" filelist.txt
    

    or

    findstr /r /x /C:".*[^a-zA-Z0-9_ ./-].*" filelist.txt
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been struggling with a problem trying to get PLJava to work on
I am really struggling trying to get something very simple achieved. Essentially, I have
I am trying to read the following xml stream but am really struggling. <channelSnapshot
I am trying to get a date picker working and I am really struggling
I'm trying to get to learn som javascript/jQuery stuff, and I'm really struggling with
Hey, I'm really struggling with this one. I'am trying to port a small piece
Really stuck on trying to write code to unzip a file or directory on
I am trying to get data driven testing to work in C# with MSTest/Selenium.
I am trying to learn Spring and Hibernate and i am really struggling to
I'm really struggling to decrypt a given cipher text in PHP and I'm hoping

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.