473,434 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

How can i extract image name from URL?

1
I'm a beginner,my question is how how can i extract image name from URL. lets say an Image in this form "https://media.8ch.net/file_store/dba2bf277a91c75d94e48d47e03024784decb09b385fc3a4b8 81e32e4bc1c727.jpg"
how can i get it's original name ?
Oct 9 '16 #1
1 4809
Oralloy
988 Expert 512MB
Good Morning Ackon,

Try pattern matching and taking off the last part. Most languages allow capture of parenthetic sub-expressions.
Expand|Select|Wrap|Line Numbers
  1. Complete regular expression: ".*/([^/]*)"
  2. Captured component is:       "([^/]*)"
Kind Regards,
Oralloy
Oct 9 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Daniel Frey | last post by:
Hello, I'd like to extract the name of an indirectly addressed element by subsequently using the childs position: 001 <a> 002 <b1/> 003 <b2/> 004 <b3/> 005 </a>
1
by: Joe via DotNetMonster.com | last post by:
Hi, I'm not sure how to get the image name from the database into the HTML img tag. I can get regular text. For the img tag, this is what I have: <img src="../images/<ASP:Repeater...
1
by: Miki Peric | last post by:
Which .Net function I should use to extract file name from URL/path?
0
by: chandrasena | last post by:
I am willing to extract Image format, Image Version, Image Identification, Image type, Image data format, Compression type etc.., from an image. How can i achieve this in C#. Please Send me the Code.
2
by: Kevin Walzer | last post by:
I'm trying to avoid a *lot* of typing in my Tkinter application by associating image names with items in a list. Here is my sample list: self.catlist = I've also already created a bunch of...
1
by: 848lu | last post by:
hi, i have this code and i wanted to match a record field name i.e. primary key with a image name, but i cant get it to work, i cant think of anything else how to do it heres the code <?php ...
4
by: lushna | last post by:
help to extract image from url
11
by: viki1967 | last post by:
Hi all. I have this code ASP for call the image in the web page : src=" & server.urlEncode(objRs("photo")) & " But if the image name has a space, for example AAA BBB.jpg, the image I...
2
by: mansi49 | last post by:
simply when i try this code in my php editor images was successfully uploaded in folder but not show image name in mysql database table. html file code: <form action="move_fupload.php"...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.