Warning: caught exception emitted by boost::regex_search()

Now how to deal with such an error that just boobs up!

Warning: caught exception emitted by boost::regex_search() [pattern='[1]---\s(.?)---\s(?:|\n)' reason='The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.'] Please report this error to http://support.rstudio.com Warning: caught exception emitted by boost::regex_search() [pattern='^[\s\n]*---\s*(.*?)---\s*(?:|\n)' reason='The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.']
Please report this error to http://support.rstudio.com


  1. \s\n ↩︎

The error imparts its own solution: The regex is too complex and needs to be decomposed into separate steps; first to catch leading whitespace, then pipe to the next step.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.