Opened 6 years ago

#804 new defect

replace using regular expressions refuses to replace "nothing"

Reported by: westram Owned by: devel
Priority: critical Milestone:
Component: Library (other) Version: SVN
Keywords: Cc:

Description

Using an expression like "/[\.-]*$//" may lead to the following error

ARB ERROR: The regular expression '[.-]*$' matched an empty string (not allowed for replace)

This behavior is broken:

  • if multiple entries are searched+replaced → one failing entry will make all fail
  • it should be possible to remove common prefix/suffix using reg-replace

Change History (0)

Note: See TracTickets for help on using tickets.