Skip to main content
Participating Frequently
November 10, 2024
Question

regex invalid quantifier error.

  • November 10, 2024
  • 1 reply
  • 670 views

 

Maybe someone can help with this error.  I am using Adobe Dreamweaver 19.2.1.    

I receive the following error when executing  my find and replace string  and selecting replace all Regular expression syntax error:  invalid quantifier.  

Code I am searching  <table cellspacing=0 border=0 cellpadding=2 width=312>

Search string  =(?<!")\b(\d+)\b(?!")

Replace string  ="$1"

I do not recieve the error if I simply select replace. Adobe makes the appropriate changes with no error. The error  only occurs if I click replace all.

Thanks

This topic has been closed for replies.

1 reply

BenPleysier
Community Expert
Community Expert
November 10, 2024

There is nothing wrong with the search or replace string.

 

It seems that sometimes, the "Replace All" function can cause issues in Dreamweaver if the regular expression is complex.

 

Maybe consider updating Dreamweaver to the latest version - May 2024 release (version 21.4)

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participating Frequently
November 10, 2024

Thanks . The search string gives me the same error in Dreamweaver 21.4  on WIN 10.  

Any work arounds ?  ive been seaching and googling for serveral days. 

BenPleysier
Community Expert
Community Expert
November 11, 2024

The error "Regular expression syntax error: invalid quantifier" typically occurs when there's an issue with the quantifier in your regular expression. A quantifier specifies how many times a character or group should be matched, and it must be correctly formatted.

 

In this case, the error might be due to the use of lookbehind assertions ((?<!") and (?!")). Lookbehind assertions are not supported in all regular expression engines, which could be causing the issue.

 

Try this modified search string: (?<!")(\d+)(?!")

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!