Searching for ."

D

Danny

Hello:

Using the code below, I am searching for many words, in addition to a period
followed by a closing quotation mark. However, when I compile it, I am asked
for a list separator or a closing paranthesis ()). Any idea how I would be
able to search for a period and a closing quotation mark while using an
array? What if I were searching with quotation marks on both sides?

Thanks.


vscourtext = Array("check ", "checks ", "checking account", "counseling",
"offense", "center", "labor", "behavior", "honor", "honors", "here in the
US", "in the US", "actualized", "analyze", "analyzer", "authorize",
"capitalize", "categorize", "centralize", "color", "customize", "endeavor",
"familiarize", "favor", "individualize", "industrialize", "maximize",
"minimize", "normalize", "normalizing", "organize", "personalize",
"privatize", "realize", "recognize", "skeptical", "stabilize", "utilize",
"practice ", "licensed", "$", "/08", "/07", "/06", "5:00", ", and", "."")
 
J

Jonathan West

Hi Danny

You have two double quote characters at the end. Delete one of them.

Also, I presume that in your project, all this is on a single line, and that
the message has wrapped the lines?

If not, then you need to put line continuation characters (the undescore
character _) at the end of each line, with a space before it, and make sure
that you don't break a line in the middle of a quoted string.
 
D

Danny

Thanks for your reply, Johnathan.

Yes, it is on one line.

I don't think I explained my problem well. What I'm searching for is any
occurence where a punctuation mark, in this case a period, is immediately
followed by a closing quotation mark; such as "The quick brown fox jumped
over the lazy dogs." I want to find the ." part of the sentnce. How would I
do that?

When I remove the second consecutive quotation mark, the script highlights
all instances where a period occurs.

Thanks,

Danny



Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top