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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:24:38+00:00 2026-05-23T12:24:38+00:00

given a string : The [[Pulsatile_flow|pulsatile]] nature of blood flow creates a pulse wave

  • 0

given a string :

The [[Pulsatile_flow|pulsatile]]
nature of blood flow creates a pulse
wave that is propagated down the
[[arterial tree]], and at
[[Aortic_bifurcation|bifurcations]]
reflected waves rebound to return to
semilunar valves and the origin of the
[[aorta]]. These return waves create
the
[[Dicrotic_notch#Ventricular_systole|dicrotic
notch]] displayed in the aortic
pressure curve during the [[cardiac
cycle]] as these reflected waves push
on the [[heart valve|aortic semilunar
valve]].[[Wiktionary:aorta|]]

how could i extract ALL words/phrases enclosed in ‘[[ ]]’ and put then in an array using php.

with condition :
if “|” exist retrieve only words after “|” if no words exist after “|” retrieve the words before “|” but after “:” .
words in parenthesis will also be disregarded.

example

[[aorta]]                              => retrieve aortal

[[Pulsatile_flow|pulsatile]]           => retrieve only pulsatile

[[Pulsatile_flow|pulsatile (temp)]]    => retrieve only pulsatile

[[Wiktionary:aorta|Aorta Topic]]       => retrieve Aorta Topic

[[Wiktionary:aorta|]]                  => retrieve aorta

[[aorta|]]                             => retrieve aorta

if “|” did not exists retrieve all

 [[Wiktionary:aorta]]  => retrieve Wiktionary:aorta
  • 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-23T12:24:38+00:00Added an answer on May 23, 2026 at 12:24 pm

    Check this out:

    $results = array();
    $source = "The [[Pulsatile_flow|pulsatile]] nature of blood flow creates a pulse wave that is propagated down the [[arterial tree]], and at [[Aortic_bifurcation|bifurcations]] reflected waves rebound to return to semilunar valves and the origin of the [[aorta]]. These return waves create the [[Dicrotic_notch#Ventricular_systole|dicrotic notch]] displayed in the aortic pressure curve during the [[cardiac cycle]] as these reflected waves push on the [[heart valve|aortic semilunar valve]].[[Wiktionary:aorta|]]";
    if ( preg_match_all('/\[\[(.*?)\]\]/is', $source, $matches) ) 
    {
        foreach ( $matches[1] as $match ) 
        {
            if ( strpos( $match, '|' ) === false ) {
                $results[] = $match;
            } else {
                $parts = explode( '|', $match );
                if ( empty( $parts[1] ) ) {
                    $parts = explode( ':', $parts[0] );
                    $results[] = count( $parts ) == 2 ? $parts[1] : $parts[0];
                } else {
                    $results[] = preg_replace( '/\(.*?\)/is', '', $parts[1] );
                }
            }
        }
    }
    
    var_dump( $results );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking for a way to hash a given string in C# that
Algorithm to generate all possible letter combinations of given string down to 2 letters
Is there a built-in function/method that can check if a given string is a
What regular expression can I use (if any) to validate that a given string
Given : String[] directions = {UP,DOWN,RIGHT,LEFT,up,down,right,left}; String input = Up; How can I verify
Consider a JavaScript method that needs to check whether a given string is in
I am trying to validate that the given string contains contains only letters, numbers,
Given a string of a mobile phone number, I need to make sure that
I want to split the given string and remove the duplicate from that string.
I need a function that returns whether the given string contains at least x

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.