Regular expression replace?
Up one level
Regular expression replace?
Does ELAN have a facility for regular expressions in replacement expressions? I see there is a pretty full-featured regex engine for searches, but the only replace option I see doesn't appear to accept anything but literal text. In particular, it doesn't accept group references. This seems to make the search-and-replace function extremely limited. Am I missing some other way to do more complex replacements?
Thanks.
Re: Regular expression replace?
No, currently there is no support for regular expressions in replacement expressions, the replacement is indeed treated as a literal string. In the current situation the replace function only receives the "hits" and the hit positions, it has no (group) references to the regular expression of the search (which will make constructing a regular expression for a replacement difficult, I believe).
-Han