Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This should work for you</p> <pre><code>^(?:search for|look for|find)\s*(.*?)(?:\s*(?:in|around|at)\s*(.*))?$ </code></pre> <p>You can add more clauses like <code>look for/in/at</code> by adding moer <strong>or</strong> clauses to the non-capturing groups.</p> <p><strong>Explanation:</strong></p> <pre><code>@" ^ # Assert position at the beginning of a line (at beginning of the string or after a line break character) (?: # Match the regular expression below # Match either the regular expression below (attempting the next alternative only if this one fails) search\ for # Match the characters “search for” literally | # Or match regular expression number 2 below (attempting the next alternative only if this one fails) look\ for # Match the characters “look for” literally | # Or match regular expression number 3 below (the entire group fails if this one fails to match) find # Match the characters “find” literally ) \s # Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) * # Between zero and unlimited times, as many times as possible, giving back as needed (greedy) ( # Match the regular expression below and capture its match into backreference number 1 . # Match any single character that is not a line break character *? # Between zero and unlimited times, as few times as possible, expanding as needed (lazy) ) (?: # Match the regular expression below \s # Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) * # Between zero and unlimited times, as many times as possible, giving back as needed (greedy) (?: # Match the regular expression below # Match either the regular expression below (attempting the next alternative only if this one fails) in # Match the characters “in” literally | # Or match regular expression number 2 below (attempting the next alternative only if this one fails) around # Match the characters “around” literally | # Or match regular expression number 3 below (the entire group fails if this one fails to match) at # Match the characters “at” literally ) \s # Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) * # Between zero and unlimited times, as many times as possible, giving back as needed (greedy) ( # Match the regular expression below and capture its match into backreference number 2 . # Match any single character that is not a line break character * # Between zero and unlimited times, as many times as possible, giving back as needed (greedy) ) )? # Between zero and one times, as many times as possible, giving back as needed (greedy) $ # Assert position at the end of a line (at the end of the string or before a line break character) " </code></pre>
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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