Share via

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.

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.