By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2339 - TDEFileReplace regex support needs improvements
Summary: TDEFileReplace regex support needs improvements
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: non-core programs (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: 2969
  Show dependency treegraph
 
Reported: 2015-01-30 01:51 CST by Michele Calgaro
Modified: 2018-08-30 02:24 CDT (History)
2 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Calgaro 2015-01-30 01:51:09 CST
1) 
TDEFileReplace support for regex seems incomplete/poor. For example using \1 in the replace string with the regex option enabled, should insert the first regex group string. Instead a literal \1 is inserted.

2) when using regex patterns in the search and replace strings, TDEFileReplace hangs. Steps to reproduce:
- use \d or (\d) as search string
- use \1\1 as replace string
TDEFileReplace hangs (both in simulation and in replace mode).
Comment 1 Michele Calgaro 2016-04-15 22:34:28 CDT
It seems matching against regex patterns is quite slow when multiple-choice patterns are specified. Probably the regex engine is using a recurvise approach instead of a FSM. This may explain point 2)