D
doug
I am making a page to do a search.
The syntax is, you may group words with double quotes.
You may also add a + to signify a word must be present, or a - to
signify it shouldn't be present. Each "phrase" is separated by spaces
or commas.
So for example, all of these would be valid and can be combined by
separating them with spaces:
+"red blue"
+orange
purple
-green
"yellow red"
Is there a way to split this or match this using a regular expression?
The syntax is, you may group words with double quotes.
You may also add a + to signify a word must be present, or a - to
signify it shouldn't be present. Each "phrase" is separated by spaces
or commas.
So for example, all of these would be valid and can be combined by
separating them with spaces:
+"red blue"
+orange
purple
-green
"yellow red"
Is there a way to split this or match this using a regular expression?