DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: extract text from brackets  (Read 6,829 times)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
extract text from brackets
« on: September 14, 2015, 12:23 PM »
hello!

Is there an online tool (so that I can use it in any pc) that will extract text from brackets, commas, etc?

ie text between [], (), etc

thanks!

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: extract text from brackets
« Reply #1 on: September 14, 2015, 12:42 PM »
How about an example input/output text so we're not going to have to play 20 questions to find out what you really want?
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: extract text from brackets
« Reply #2 on: September 14, 2015, 01:19 PM »
It's so simple!

Input text:
The influence of sonic waves traveling through liquids was first reported by Robert Williams Wood (1868–1955) and Alfred Lee Loomis (1887–1975) in 1927.

Output text:
1868–1955
1887–1975

Output text could also be:
(1868–1955)
(1887–1975)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: extract text from brackets
« Reply #3 on: September 15, 2015, 07:23 AM »
anyone please??????

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: extract text from brackets
« Reply #4 on: September 15, 2015, 12:19 PM »
It's so simple!

Input text:
The influence of sonic waves traveling through liquids was first reported by Robert Williams Wood (1868–1955) and Alfred Lee Loomis (1887–1975) in 1927.

Output text:
1868–1955
1887–1975


• http://www.beansoftware.com/Test-Net-Regular-Expressions/Extract-Data.aspx

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: extract text from brackets
« Reply #5 on: September 15, 2015, 01:04 PM »
not online, but worth a mention:
WildGem 1.1 (dc link)
Tom

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: extract text from brackets
« Reply #6 on: September 15, 2015, 08:03 PM »
I think I could easily add this to my Text Inspection & Manipulation Utility. That is a Windows desktop application though.

Original address: https://www.donationcoder.com/forum/index.php?topic=41593.0