#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2017
    Posts
    1
    Rep Power
    0

    Remove last character (symbol | )


    Hi everyone,
    I work with biological data and I have to remove this symbol | and I can't catch only the final |
    For example:

    Silva, A. G. |

    Reis, R. B. | Costa, M. C. A. (in this case I want to keep it)

    Braz, G. S. |

    Any suggestions?

    Thank you very much
  2. #2
  3. Maddening Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,459
    Rep Power
    9645
    Code:
    \|$
    If there could be whitespace after the pipe then add in an \s*.

IMN logo majestic logo threadwatch logo seochat tools logo