In the MS Office JavaScript API, if I use more than seven character groups (square brackets) in a regular expression, no matter how simple, I get a general exception.

Hanley Loller 0 Reputation points
2023-12-04T16:34:52.3366667+00:00

The example search string: 

'[Chapters][Chapters][Chapters][Chapters][Chapters][Chapters][Chapters]'

finds all instances of the word Chapter. If you add an eighth [Chapters] which should find the word Chapters it throws a general exception. I've tested this multiple ways. It always fails when an eighth character group is added. This is a big problem for me.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
943 questions
0 comments No comments
{count} votes