Skip to main content
Legend
June 22, 2021
Question

RH2020 Update 5 - Problem with Search with Regular Expression in Source Code

  • June 22, 2021
  • 3 replies
  • 354 views

Hi all,

I am using RH2020 Update 5 and trying to fix some of my code in the source code. For this, I wanted to use a regular expression. The expression itself seems to be correct (at least, I get the desired results when using it in Notepad++), but the search in RH only keeps on running without returning any results. I tried it with the complete project and also only with one topic open. 

Do I have to create the RegEx somehow different? Is anyone else having issues here?

This is my RegEx:

(?!.*vertical-align).*span style*

What I am trying to achieve with this is to find all <span style tags except those containing vertical-align (because these are my variables).

I have the following settings in the search:

Thanks and best regards

Karin

    This topic has been closed for replies.

    3 replies

    Peter Grainge
    Community Expert
    Community Expert
    June 23, 2021

    @Sudhanshu Monga I tried that expression in About RoboHelp and whilst it works it does seem to take way more time than I would expect.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Legend
    June 23, 2021

    Hi,

    the problem does not occur if I create a new topic with just one of the affected files. However, you can also see this effect using the sample project "About RoboHelp". In this, open e.g. the file "authoring - Importing_Linking", go to Search and Replace, enter the RegEx

    (?!.*vertical-align).*span style*

    and use the following settings:

     

    In my case, the search in this single file did not come to an end in over 11 minutes. In Notepad++, the search within this file returned the result immediately.

    I guess you already have the sample projects, so I did not send you anything. Kindly let me know if you need anything else.

    Kind regards

    Karin

    Legend
    June 22, 2021

    Okay, I have an update on this: if I search only the current file, the search does come to an end after about 8 minutes. So there seems to be a performance issue here. Anyone else having issues?

    Adobe Employee
    June 23, 2021

    Hi, 

    is it possible for you to share the topic with us? Would be even better if you could share the project itself.