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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:20:08+00:00 2026-05-20T05:20:08+00:00

Sorry guys, it seems like I didn’t explain my question clearly. Please allow me

  • 0

Sorry guys, it seems like I didn’t explain my question clearly. Please allow me to rephrase my question again.

  1. I use WebClient to download the whole webpage and I got the content as a string

    ”

    …….

    …..
    var picArr =”/d/manhua/naruto/516/1.png|/d/manhua/naruto/516/2.png|/d/manhua/naruto/516/3.png|/d/manhua/naruto/516/4.png|/d/manhua/naruto/516/5.png|/d/manhua/naruto/516/6.png|/d/manhua/naruto/516/7.png|/d/manhua/naruto/516/8.png|/d/manhua/naruto/516/9.png|/d/manhua/naruto/516/10.png|/d/manhua/naruto/516/11.png|/d/manhua/naruto/516/12.png|/d/manhua/naruto/516/13.png|/d/manhua/naruto/516/14.png|/d/manhua/naruto/516/15.png|/d/manhua/naruto/516/16.png”
    ……
    “;

in this content, I want to get only one line which is

var picArr ="/d/manhua/naruto/516/1.png|/d/manhua/naruto/516/2.png|/d/manhua/naruto/516/3.png|/d/manhua/naruto/516/4.png|/d/manhua/naruto/516/5.png|/d/manhua/naruto/516/6.png|/d/manhua/naruto/516/7.png|/d/manhua/naruto/516/8.png|/d/manhua/naruto/516/9.png|/d/manhua/naruto/516/10.png|/d/manhua/naruto/516/11.png|/d/manhua/naruto/516/12.png|/d/manhua/naruto/516/13.png|/d/manhua/naruto/516/14.png|/d/manhua/naruto/516/15.png|/d/manhua/naruto/516/16.png"

now I want use regular expression to get this string and get the value of picArr.

my reg exp is
var picArr =”([.]*)”

I think the dot means any characters. But it doesn’t work. 🙁

Any idea?

THanks a lot

  • 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-20T05:20:08+00:00Added an answer on May 20, 2026 at 5:20 am
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Text.RegularExpressions;
    
    namespace ExtractFileNames
    {
        class Program
        {
            static void Main(string[] args)
            {
                string pageData = @"blah blah
    var picArr =""/d/manhua/naruto/516/1.png|/d/manhua/naruto/516/2.png|/d/manhua/naruto/516/3.png|/d/manhua/naruto/516/4.png|/d/manhua/naruto/516/5.png|/d/manhua/naruto/516/6.png|/d/manhua/naruto/516/7.png|/d/manhua/naruto/516/8.png|/d/manhua/naruto/516/9.png|/d/manhua/naruto/516/10.png|/d/manhua/naruto/516/11.png|/d/manhua/naruto/516/12.png|/d/manhua/naruto/516/13.png|/d/manhua/naruto/516/14.png|/d/manhua/naruto/516/15.png|/d/manhua/naruto/516/16.png""
    more blah decimal blah";
    
                var match = Regex.Match(pageData, @"var\s+picArr\s*=\s*""(.*?)""");
                var str = match.Groups[1].Value;
                var files = str.Split('|');
                foreach(var f in files)
                {
                    Console.WriteLine(f);
                }
                Console.ReadLine();
    
            }
        }
    }
    

    Output:

    /d/manhua/naruto/516/1.png
    /d/manhua/naruto/516/2.png
    /d/manhua/naruto/516/3.png
    /d/manhua/naruto/516/4.png
    /d/manhua/naruto/516/5.png
    /d/manhua/naruto/516/6.png
    /d/manhua/naruto/516/7.png
    /d/manhua/naruto/516/8.png
    /d/manhua/naruto/516/9.png
    /d/manhua/naruto/516/10.png
    /d/manhua/naruto/516/11.png
    /d/manhua/naruto/516/12.png
    /d/manhua/naruto/516/13.png
    /d/manhua/naruto/516/14.png
    /d/manhua/naruto/516/15.png
    /d/manhua/naruto/516/16.png
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all sorry guys for posting the question here. The support forum seems
I could be not more sorry guys - the question was a very wrong
Hello guys sorry if the question looks stupid to you. i have 3 tables
Sorry for this guys, but I really am unlucky today. Please help, my problem
Sorry guys if this is a lame question, but the examples i found dont
Sorry guys, if this is a stupid question. I have a set of integers
Sorry guys, I posted this earlier today where my add as linked images were
Sorry guys! i am so into the code! that i forgot to put the
Sorry for the wall of text guys but this one requires expliaining, way too
Ok guys, I'm really new at python (and programming itself) so sorry for my

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.