kewakl (Customer) asked a question.

PAC 3.12.1.21 --- Find/Replace is acting up again (with regex behavior and odd results)

See images at bottom of post.

regex is acting up again in the Find/Replace search dialog. (see text from old forum at the bottom of this post for the observed behavior. )

I do see multiple entries in the Find/Replace results panel of CONST references.

I can escape the search with the slant escape character.

[I cannot reproduce this with a NEW/EMPTY project.]

[I cannot reproduce this on another PC -- with the same project.]

 

I think it is related to how long the PAC software has been running and/or how many changes have been made to UDS definitions during the software uptime.

I will, later today, restart the software and update this post.

 

 

 

 

(most context is lost from the forum switch)

From way back:

 

 

adccommunitymod (AutomationDirect)

Edited September 16, 2020 at 7:07 PM

 

Created Date: October 31,2014

Created by: kewakl

Search for returns and about 200 other tags that start with D, W or X

Search for returns and Always Off Bit -- whatever begins with D, A or T

Search for returns -- again the P, I, C or K thing...

Version 1.10.0(11) still requires escaping these tagnames to return any results.

will not return any results.

\ works almost as expected. For this search to work, I must press 'ENTER ' because the 'search Now ' button will not enable with this search term.

 

 

-------------------------- from legacy forum --------------------------

adccommunitymod (AutomationDirect)

Edited September 16, 2020 at 7:07 PM

 

Created Date: August 26,2015

Created by: kewakl

With the unmodified project (attached to the previous post):

Search for

The Search returns

Rung 1, Column 1, NO Contact

Rung 2, Column 1, NO Contact

Rung 2, Column 11, NO Out Coil

Rung 3, Column 1, NO Contact

-Correct for REGEX.

Now escape the search term \ - But DO NOT SEARCH!

Now change tag C-000011 to

Remove the escape character \ from the search term and retry the search term

The Search returns nothing.

It seems that simply having a tag (with square brackets) in the tag database AND that matches an escaped search term (not actively searched) will cause the REGEX engine to apply an automatic escape to search terms.

------------------------------------------------------------------------------

 

 

 

Regex image 

CONST


  • ADC Community_02 (Automationdirect.com)

    Have you reached out to our technical support team on this issue? This would be the best way to get this issue escalated to our engineering & QA teams.

    • kewakl (Customer)

      Not yet as I cannot duplicate it on another laptop. I do want a place to save observations and considerations -- that others can read/critique.

      I do hope that I have included enough disclaimer in OP so that it does not cause undue alarm.

       

    • kewakl (Customer)

      I did create a case this morning.

       

  • kewakl (Customer)

    OK. I can duplicate with a simple project -- attached as regex_2.zip

     

    Upon opening the project, Find/Replace works as expected.

    I can search for any tag. The 'regex' pattern matching does not appear to be enabled.

    If I search for either STRUCT TAG (first or third) then the regex pattern matching seems to be enabled.

    regex bracket expression '[ ... ]' matches a single (initial) character, so [ft] should match any single 'f' or any single 't' as in first or third

     

    Steps:

    1. load project
    2. search for [ft] [no results]
    3. search for first [result set Rung 1 Col 1, Rung 1 Col 11, Rung 2 Col 11] (only references to struct tag first are returned)
    4. search for [ft] again [result set Rung 1 Col 1, Rung 1 Col 11, Rung 2 Col 11] (notice that the result from Rung 2 Col 11 now shows references to the struct tag third)

     

    1. search for "[abcd]_t" [result set Rung 3 Col 11] shows references to 3 struct tags named A_Test, B_Test and D_Test but not the struct tag named C_File

     

    Odd that searching for a Struct Tag enables a (by default) disabled feature that has no GUI enable control.

    Expand Post
  • Todd Dice (Customer)

    I cannot search and replace C-bits for discrete inputs. I don't mean to take over this thread but I saw this post while working in the same software version and having a similar issue. To get me where I wanted to go, I deleted the tags tied to the inputs, and went into the tag database and forced the tag into a disctrete and the address wanted.