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 815485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:41:30+00:00 2026-05-15T01:41:30+00:00

I am trying to match any url that has /images/ , /styles/ , or

  • 0

I am trying to match any url that has /images/ , /styles/ , or /scripts/ in a lighttpd $HTTP[“url”] statement. How could this be done? I am currently using “^/images/” , etc. and it’s only working if that directory is in the beginning of the URL.

  • 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-15T01:41:31+00:00Added an answer on May 15, 2026 at 1:41 am
    /(images|styles|scripts)/
    

    will match any string that has either /images/, /styles/ or /scripts/ in it.

    Since you need to match the slash, use a different regex delimiter, e. g. !:

    if ($subject =~ m!/(images|styles|scripts)/!) {
        # Successful match
    } else {
        # Match attempt failed
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying to rewrite any URL that match this pattern: ~/Ahmed ~/Name to
I'm trying to match the '12345' from a url in this form: http://domain.com/folder/title_of_this_12345 So
Im trying to find a regular expression that matches this kind of URL: http://sub.domain.com/selector/F/13/K/100546/sampletext/654654/K/sampletext_sampletext.html
I'm trying to match any requests for a url that do not have a
I'm trying to retrieve images from any site that has images I'm using simplehtmldom
I'm trying to write a regex to match any path that contains /? to
I trying to match a variable from an url. This works fine if I
I have this regex: /.*v\=([\w-]+).*(&autoplay\=1)?/ Which I am trying to match against: http://www.youtube.com/watch?v=awmLS6GCJno&width=1000&height=300&autoplay=1 This
I am trying to build a regular expression to match any git read+write URL
I'm trying to match any bullet list in a free text document. Bullet lists

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.