Note that there are some explanatory texts on larger screens.

plurals
  1. POregular expression: search multiple words with multiple parts
    primarykey
    data
    text
    <p>I am trying to implement searching a set of multiple words which include multiple parts. For example, we have these medical terminologies. </p> <pre><code>R Deep Transverse Metatarsal Ligament 4 GEODE R Distal JointCapsule 1 GEODE R Dorsal Calcaneocuboid Ligament GEODE R Dorsal Carpometacarpal Ligament 2 GEODE R Dorsal Cuboideavicular Ligament GEODE R Dorsal Tarsometatarsal Ligament 5 GEODE R Elbow Capsule GEODE R F Distal JointCapsule 1 GEODE R Fibular Collateral Bursa GEODE R Fibular Collateral Ligament GEODE R Fibular Ligament GEODE </code></pre> <p>User can enter search terms like this:</p> <p>e.g., "R De Me Li" then this should find "R Deep Transverse Metatarsal Ligament 4 GEODE"</p> <p>e.g., "Fi Colla" ==> "R Fibular Collateral Bursa GEODE", "R Fibular Collateral Ligament GEODE"</p> <p>e.g., "bow ODE" ==> "R Elbow Capsule GEODE"</p> <p>That is, even when user enters some portions of a word, it should find the answers. If there are multiple answers, it should show all. I appreciate your help in advance. </p> <p>Added) Oh.. I forgot something. </p> <p>e.g., "ral lar" ==> It shouldn't show "R Fibular Collateral Bursa GEODE" or "R Fibular Collateral Ligament GEODE" since the order of query words should be considered. </p> <p>In addition, the spaces among the query words mean different words of each line (database).</p> <p>The order of query words should be the same as the words of each line (database), but the query words could be shorter than the database words. </p> <p>e.g., "R De Me 4" ==> "R Deep Transverse Metatarsal Ligament 4 GEODE" Where we can see that 'Metatarsal' and 'Ligament' include 'me', but the first match with 'Metatarsal' is fine, and 4 will be searched. </p> <p>In addition, different combinations of query words can return the same result.</p> <p>e,g., </p> <p>'Car' ==> 'R Dorsal Carpometacarpal Ligament 2 GEODE'</p> <p>'Do Car' ==> 'R Dorsal Carpometacarpal Ligament 2 GEODE' </p> <p>'R Do Carp' ==> 'R Dorsal Carpometacarpal Ligament 2 GEODE'</p> <p>Note: no case-sensitive. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload