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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:49:06+00:00 2026-05-17T14:49:06+00:00

I’ve a text document from which I want to extract URLs and place them

  • 0

I’ve a text document from which I want to extract URLs and place them in a new text file. How can I do that in Perl? A sample of the text file is here:

{“type”:”TabGroupsManager:GroupData”,”id”:65,”name”:”XML
Schema
Editor”,”image”:”http://www.altova.com/favicon.ico”,”disableAutoRename”:false,”titleList”:”XML
Schema Editor\u000aAltova XMLSpy Code
Generation\u000aOnline Video
Demos\u000aScheduled Data Exchange
Case Study\u000aXML Editor\u000aAltova
XMLSpy 2011\u000aXML Schema Management
Tool\u000a”,”tabs”:[“{\”entries\”:[{\”url\”:\”http://www.altova.com/xmlspy/xml-schema-editor.html\”,\”title\”:\”XML
Schema
Editor\”,\”ID\”:1442422751,\”referrer\”:\”http://www.altova.com/xmlspy/xml-editing.html\”,\”scroll\”:\”0,0\”,\”formdata\”:{\”#q\”:\”\”}}],\”index\”:1,\”attributes\”:{\”image\”:\”http://www.altova.com/favicon.ico\”},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”,”{\”entries\”:[{\”url\”:\”http://www.altova.com/xmlspy/xml-code-generation.html\”,\”title\”:\”Altova
XMLSpy Code
Generation\”,\”ID\”:1442423118,\”referrer\”:\”http://www.google.com/search?hl=en&client=firefox-a&hs=GR1&rls=org.mozilla%3Aen-GB%3Aofficial&q=altova+derive+schema+from+xml&aq=f&aqi=m1&aql=&oq=&gs_rfai=\”,\”scroll\”:\”0,0\”,\”formdata\”:{\”#q\”:\”\”}}],\”index\”:1,\”attributes\”:{\”image\”:\”http://www.altova.com/favicon.ico\”},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”,”{\”entries\”:[{\”url\”:\”http://www.altova.com/videos.asp?type=0&video=xmlspy\”,\”title\”:\”Online
Video
Demos\”,\”ID\”:1442423184,\”referrer\”:\”http://www.altova.com/xmlspy/xml-code-generation.html\”,\”scroll\”:\”0,0\”,\”formdata\”:{\”#q\”:\”\”}}],\”index\”:1,\”attributes\”:{\”image\”:\”http://www.altova.com/favicon.ico\”},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”,”{\”entries\”:[{\”url\”:\”http://www.altova.com/solutions/exchange_ratecasestudy.html\”,\”title\”:\”Scheduled
Data Exchange Case
Study\”,\”ID\”:2618,\”formdata\”:{\”#q\”:\”\”},\”scroll\”:\”0,1369\”}],\”index\”:1,\”attributes\”:{\”image\”:\”http://www.altova.com/favicon.ico\”},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”,”{\”entries\”:[{\”url\”:\”http://www.altova.com/xml-editor/\”,\”title\”:\”XML
Editor\”,\”ID\”:2620,\”formdata\”:{\”#q\”:\”\”},\”scroll\”:\”0,0\”}],\”index\”:1,\”attributes\”:{\”image\”:\”http://www.altova.com/favicon.ico\”},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”,”{\”entries\”:[{\”url\”:\”http://manual.altova.com/XMLSpy/spystandard/index.html?xmlschemasstd.htm\”,\”title\”:\”Altova
XMLSpy
2011\”,\”ID\”:2622,\”children\”:[{\”url\”:\”http://manual.altova.com/XMLSpy/spystandard/xmlspy_content_dyn.html\”,\”title\”:\”Altova XMLSpy
2011\”,\”ID\”:2623,\”referrer\”:\”http://manual.altova.com/XMLSpy/spystandard/index.html?xmlschemasstd.htm\”,\”scroll\”:\”0,0\”},{\”url\”:\”http://manual.altova.com/XMLSpy/spystandard/xmlschemasstd.htm\”,\”title\”:\”XML
Schemas\”,\”ID\”:2624,\”referrer\”:\”http://manual.altova.com/XMLSpy/spystandard/index.html?xmlschemasstd.htm\”,\”scroll\”:\”0,260\”}],\”scroll\”:\”0,0\”}],\”index\”:1,\”attributes\”:{},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”,”{\”entries\”:[{\”url\”:\”http://www.altova.com/schemaagent.html\”,\”title\”:\”XML
Schema Management
Tool\”,\”ID\”:2626,\”formdata\”:{\”#q\”:\”\”},\”scroll\”:\”0,171\”}],\”index\”:1,\”attributes\”:{\”image\”:\”http://www.altova.com/favicon.ico\”},\”extData\”:{\”TabGroupsManagerGroupId\”:\”65\”,\”TabGroupsManagerGroupName\”:\”XML
Schema
Editor\”},\”_formDataSaved\”:true}”]}

From that I want to create a text file like:

http://www.altova.com/xmlspy/xml-schema-editor.html
http://www.altova.com/xmlspy/xml-code-generation.html
  • 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-17T14:49:08+00:00Added an answer on May 17, 2026 at 2:49 pm

    Since that appears to be a JSON file rather than a plain text file, use one of the JSON modules on CPAN. This is slightly complicated by the fact that you appear to have data encoded as JSON then stored as strings in a larger object which has then been converted to JSON — so you will have to parse the file, extract the strings, parse them as JSON in turn and then extract the URIs from them.

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

Sidebar

Related Questions

I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6

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.