Skip to main content
Inspiring
December 15, 2020
Question

Find with Regular Expressions: Find a cross-reference text range

  • December 15, 2020
  • 2 replies
  • 454 views

Hello fellows,

When using the FM "Find" menu, is there a way to find an xref text range and select it?

Thanks!

    This topic has been closed for replies.

    2 replies

    Community Expert
    December 16, 2020

    Hi,

     

    You can just select one of these Find items: Cross-Reference Any/Of Format/Unresolved

    Then it will select the cross-reference.

    Is this what you are looking for?

     

    Best regards

     

    Winfried

     

    Rom_BaAuthor
    Inspiring
    December 16, 2020

    Hi Winfried,

    Thank you for your response!

    The xrefs are just part of the string I'd like to select and delete. The string looks like as follows:

     

    (xref_string [digit:digit]), where the [digit:digit] part is just plain text. 

    The problem is that there are other xrefs of the same format which are not enclosed in parantheses that I need to keep intact.

     

    Best Regards,

    Roman

    Community Expert
    December 16, 2020

    Hi Roman,

     

    I do not think that you can automate this, at least not without a script.

     

    Best regards

     

    Winfried

    Bob_Niland
    Community Expert
    Community Expert
    December 16, 2020

    According to the Help, at least some of the fields accept Regular Expressions, including ranges.

    Rom_BaAuthor
    Inspiring
    December 16, 2020

    Hi Bob,

    Thank you for your response. This statement is not clear. There are just a limited number of REGEX arguments that the Find function understands. A period (.) can select an xref in certain cases but it's not consistent.