Opened 5 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:


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.