Home > OS >  Word, how to write a regular expression to judge a clause does not appear in the particular sentence
Word, how to write a regular expression to judge a clause does not appear in the particular sentence

Time:11-19

In Word I need to write an expression function, use a wildcard matching this XXX but XXX cannot contain commas, such as the following example:

Don't match: In this tutorial, we use the search () function.
Match: When you use this search () function, be aware of the restrictions.
Matching: To search for a string, use this search () function.

I wrote & lt; This * * function> [!]; , but this still can match the first example, I put the, has eliminated ah, what went wrong?