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

  • Home
  • SEARCH
  • 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 8209653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:48:00+00:00 2026-06-07T09:48:00+00:00

I would really appreciate it, if somebody could help me out with my regular

  • 0

I would really appreciate it, if somebody could help me out with my regular expression for ProFTPd’s PathAllowFilter.

This is the regex I have so far: (.mp3|.aac|.m4a)$

Which allows only mp3s, aac, and m4a filetypes. But I would like to include the following, the filename may contain A-Z, a-z, 0-9, -, _ And the file-ending should be as stated above mp3, aac, and m4a, but it should be also allowed that it doesn’t contain any extension.

So now is my thought, how can I all combine this in one regex? Maybe you guys have some good ideas 🙂

Thanks ahead..

  • 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-06-07T09:48:02+00:00Added an answer on June 7, 2026 at 9:48 am

    Try this regex:

    [A-Za-z0-9_-]+\.(mp3|aac|m4a)?$
    

    This requires the filename to contain only the symbols you listed (note: the - sign is at the end, so that it doesn’t work as a meta-symbol), and the ? makes the extension part optional.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would really appreciate if you could shed light on this problem. I have
I would really appreciate if somebody could tell me why compilation of this program:
Would really appreciate some help with this. I have an app which consists of
I would really appreciate it if some of you could help optimize my tables,
i would really appreciate any help. I would like to convert this list [[{id1,1},{id2,2},{id3,3},{id4,4}],[{id1,5},{id2,6},{id3,7},{id4,8}],[...]]
Ok, if somebody could take a look at this, I'd really appreciate it. I'm
I would really appreciate some help with the following issue: I have a gadget
Hi folks would really appreciate your help in answering this rather involved question. Please
I have the following issue and I would really appreciate your help: I have
I'm quite new at this and would really appreciate any help on this. I'm

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.