Regular expression for fn id=

¿Does anyone know the regular expression for fn id? I want to add the following "Search regular expression" in trados verification:

RegEx source= fn id followed by ,:;.

RegEx target= ,:;. followed by fn id

 

emoji
Parents
  • Probability score: 0.6  

    Question improvement suggestion: Provide specific examples of the source and target text you are working with to clarify your request for the regular expression.  

    In the meantime, based on the information you have provided, here is a suggested answer to your question:  

    Hello! To create a regular expression for "fn id" in Trados Studio, you can use the following patterns based on your requirements:

    1. **For the source regex**: To match "fn id" followed by a comma, colon, or semicolon, you can use:

      ```

      fn id[,:;]

      ```

      This pattern looks for "fn id" followed by any of the specified punctuation marks.

    2. **For the target regex**: To match a comma, colon, or semicolon followed by "fn id", you can use:

      ```

      [,:;] fn id

      ```

      This pattern looks for any of the specified punctuation marks followed by "fn id".

    ### Steps to Implement in Trados Studio:

    - Open the QA Checker settings in Trados Studio.

    - Navigate to the section where you can add custom regular expressions.

    - Enter the source regex pattern in the "RegEx source" field.

    - Enter the target regex pattern in the "RegEx target" field.

    - Save your settings and run the verification to check for matches.

    Make sure to test these regex patterns with your specific text to ensure they work as expected. Regular expressions can be quite powerful, and small adjustments may be needed based on the exact context of your text.

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.  

    RWS Community AI

    emoji
Reply
  • Probability score: 0.6  

    Question improvement suggestion: Provide specific examples of the source and target text you are working with to clarify your request for the regular expression.  

    In the meantime, based on the information you have provided, here is a suggested answer to your question:  

    Hello! To create a regular expression for "fn id" in Trados Studio, you can use the following patterns based on your requirements:

    1. **For the source regex**: To match "fn id" followed by a comma, colon, or semicolon, you can use:

      ```

      fn id[,:;]

      ```

      This pattern looks for "fn id" followed by any of the specified punctuation marks.

    2. **For the target regex**: To match a comma, colon, or semicolon followed by "fn id", you can use:

      ```

      [,:;] fn id

      ```

      This pattern looks for any of the specified punctuation marks followed by "fn id".

    ### Steps to Implement in Trados Studio:

    - Open the QA Checker settings in Trados Studio.

    - Navigate to the section where you can add custom regular expressions.

    - Enter the source regex pattern in the "RegEx source" field.

    - Enter the target regex pattern in the "RegEx target" field.

    - Save your settings and run the verification to check for matches.

    Make sure to test these regex patterns with your specific text to ensure they work as expected. Regular expressions can be quite powerful, and small adjustments may be needed based on the exact context of your text.

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.  

    RWS Community AI

    emoji
Children