Find and Replace bookmark text - regex

Please post any ideas or requests for new features here for the End User Version of PDF-XChange (printer Drivers)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, John - Tracker Supp, Ivan - Tracker Software, Tracker Supp-Stefan, Tracker - Clarion Support, moderators, Support Staff

Post Reply
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Find and Replace bookmark text - regex

Post by Nemo »

In the Find and Replace bookmark text panel you can enter a regular expression in the Find What? box but there does not seem to be any way to use the text found in the Replace With box.

In other words it seems that you can only out a fixed value in the Replace With box.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Find and Replace bookmark text - regex

Post by Tracker Supp-Stefan »

Hello Nemo,

Yes - the replace value is 'static', so while you can have a RegEx that will capture several terms and redact them all - but the redacted result will always be the string that you specify in that dialogue.

Kind regards,
Stefan
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

Hello Stefan,

It would be very useful if the replace box allowed you to reference strings found by the REGEX

e.g. Find What ([A-z0-9]+)([ ]*)([A-z0-9])

Replace With ? $3 $2 $1
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6813
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Find and Replace bookmark text - regex

Post by Paul - Tracker Supp »

Hi Nemo,

we will add this feature. While I do not have an ETA for delivery I have raised a formal Feature Request ticket for this. You cannot access the ticket itself, it is for internal use only, however asking about RT#6042: Feature request :: Editor :: Find and Replace bookmark text - regex in replacement should get you a status report.

The date of delivery of this item will be at the discretion of the development team.

I hope that helps.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

Thank you, Paul.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Find and Replace bookmark text - regex

Post by Tracker Supp-Stefan »

:)
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

Hello

Is there any news of this?
User avatar
Dimitar - Tracker Supp
Site Admin
Posts: 1776
Joined: Mon Jan 15, 2018 9:01 am

Re: Find and Replace bookmark text - regex

Post by Dimitar - Tracker Supp »

Hello Nemo,

The status of this FR is set to completed.

Please update your product to the latest version and confirm if the requested feature is present there.

Regards.
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

Hello Dimitar

I have checked and it is working, as you say.

:)
User avatar
Dimitar - Tracker Supp
Site Admin
Posts: 1776
Joined: Mon Jan 15, 2018 9:01 am

Find and Replace bookmark text - regex

Post by Dimitar - Tracker Supp »

:)
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

It would be useful if the Replace With box was macro-enabled. So that you could use, for example:

$3 $2 $1 %[Page]
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Find and Replace bookmark text - regex

Post by Tracker Supp-Stefan »

Hello Nemo,

I believe that this is already part of the ticket Paul created?
RT#6042: Feature request :: Editor :: Find and Replace bookmark text - regex in replacement

Kind regards,
Stefan
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

In the post on 5 June Dimitar says that the FR status is now "completed" but the current version does is not allow macros to be specified.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Find and Replace bookmark text - regex

Post by TrackerSupp-Daniel »

Hello, Nemo

Apologies, I believe the Stefan had Regex and Macros confused. You are correct, Macros are not currently supported, I have created a new ticket for that request. do note that I cannot promise implementation, only that our dev team will consider this when they have time to do so.

RT#6477: FR: allow Macro use in "find & replace bookmark text"

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Nemo
User
Posts: 72
Joined: Mon Apr 20, 2020 12:23 pm

Re: Find and Replace bookmark text - regex

Post by Nemo »

Thanks :)
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Find and Replace bookmark text - regex

Post by Tracker Supp-Stefan »

:)
Post Reply