View Single Post
Old 07-21-2010, 05:11 AM   #1
Lonas
Junior Member
Lonas began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2010
Device: iPad
Question Regex capturing variables

Hi all,

I don't know if I am just doing it wrong but it seems that Sigil currently does not support the selection/capturing of string tokens with a regex to use it later in the Replace/Find dialogue. Is that correct?

I tried the Perl syntax with $1, $2, ... and I also tried cap(1), cap(2), ... and capturedTexts()[1], capturedTexts()[2], ... as specified in the QRegExp documentation (QRegExp is obviously the regex implementation used by Sigil, look here for its documentation on capturing variables: http://doc.qt.nokia.com/3.3/qregexp.html#1-5).

This would be a very important feature for me as I commonly run across badly converted PDF outputs which need to be fixed.

Any ideas? Thanks in advance!
Lonas is offline   Reply With Quote