I tried using <" with wildcards checked to find beginning quotes but none were found. <<" worked as expected.
Dale
<" not working
Hi Dale,
You should have used the following expression instead:
< means the beginning of a word. You cannot find a quote mark after the beginning of a word.
On the other hand, << means the beginning of a paragraph. You can find a quote mark starting a paragraph.
HTH.
Cheers,
Robert
You should have used the following expression instead:
Code: Select all
“<On the other hand, << means the beginning of a paragraph. You can find a quote mark starting a paragraph.
HTH.
Cheers,
Robert
Is a number part of a word? I have thought of words as characters surrounded by white space but clearly that is wrong here.
Similarly I am trying to find the closing quote and cannot find something that will work. Is it possible?
>[.?,!;:]" will not find a closing quote not at the end of a sentence or phase and >" will only find words without punctuation. Perhaps I need two searches.
Dale
Similarly I am trying to find the closing quote and cannot find something that will work. Is it possible?
>[.?,!;:]" will not find a closing quote not at the end of a sentence or phase and >" will only find words without punctuation. Perhaps I need two searches.
Dale
Yes, it is.Is a number part of a word?
It is possible.Similarly I am trying to find the closing quote and cannot find something that will work. Is it possible?
You can use the following "Find what" expression:>[.?,!;:]" will not find a closing quote not at the end of a sentence or phase and >" will only find words without punctuation. Perhaps I need two searches.
>[.?,!;:]{0,1}"
The "{0,1}" repetition counter after "[.?,!;:]" means that a punctuation sign before a quote is optional.
If you add an environment delimiter "|", the punctuation sign would not be highlighted in the document window:
>[.?,!;:]{0,1}|"
* can match too much text. It should be used with care. * should be avoided within "Find what" expressions whenever possible. For example, the first asterisk in your above "Find what" expression can catch multiple "word-less" paragraphs (blank paragraphs, or paragraphs containing punctuation signs only).Note also that the example in the help for the new features shows <<<*> and says it will find the first word of a paragraph. This is only true if the first word of the paragraph is not part of a quotation. <<*<*> will work always.
I would use a more strict pattern:
<<"{0,}<*>
{0,} means that a quote is optional.
If quotes should not be reported (highlighted), you could use the following expression:
<<"{0,}|<*>