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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:31:50+00:00 2026-06-05T04:31:50+00:00

Is there a way to do something like this? <img src=*some regular expression here*>

  • 0

Is there a way to do something like this?

<img src="*some regular expression here*">

I have a folder with a bunch of pictures and I’m trying to display all the pictures that fit the given regular expression. Also, I’m using JQuery for this, so could is it possible to do something like:

<img src="*some regular expression searching for $(var1) and $(var2) within the filenames*">

Any help is much appreciated.

  • 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-05T04:31:52+00:00Added an answer on June 5, 2026 at 4:31 am

    An img tag in HTML can only load one image at a time. So you will need to create multiple images, and figure out what relation they have to each other. So you could do something like this:

    var $parent = $('#parent_container');
    $.each(filenames, function(i, filename) {
       if (filename.match(/my_patter(n*)/) {
            $parent.append('<img src="' + RegExp.$1 + '" />');
       }
    });
    

    Obviously your real filenames won’t consist of the letter n repeated variable numbers of times.

    This will place the images one after another in a single parent container.

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

Sidebar

Related Questions

I have some text with images inside it. For example like this texttext<img src=2011-08-15/4/img/123.JPG
Is there a way to make something like this work? program Project1; {$APPTYPE CONSOLE}
Is there a way in java to do something like this: void fnc(void Reference_to_other_func());
Is there a better way to do something like this? This is fine but
Is there a way to choose dynamicaly an operator do something like this: var
Is there any way to crate nested union types in F#? Something like this
is there a way in Excel to have a formula that does something like
my code is something like this: function func1() { document.getElementById(img).src=pic.jpg; ---stament2---; } document.getElementById(img).onerror=func2(); In
Is there a way to obtain something like a dictionary of all key-value pairs
JSFiddle Is there any way to make something like the X on that link

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.