Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    405
    Thanks
    17
    Thanked 2 Times in 2 Posts

    simple grep question

    Not quite sure where to post this one, but does anybody know how I would use grep to delete any and all characters before a specific character on each line

    So that, if I had:

    Aloinopsis (Aloinopsis setifera)
    Angel's Trumpets (Mirabilis longiflora)
    123 (test)
    #51_a (test2)

    I would end up with
    (Aloinopsis setifera)
    (Mirabilis longiflora)
    (test)
    (test2)

  • #2
    Regular Coder
    Join Date
    Aug 2010
    Posts
    405
    Thanks
    17
    Thanked 2 Times in 2 Posts
    oh wait.. got it.

    I did it like so:

    ^.*?(\()


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •