How to delete text after slash in perl with truncation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hybi
    New Member
    • Jun 2013
    • 2

    How to delete text after slash in perl with truncation

    Hello,

    I would like to remove the text after a slash.
    Right now it does look like this:

    s|/||;

    But of course it only deletes the slash but not the text that follows it. I guess I need to truncate the slash but every try has failed.

    Thanks in advance!
    greets
  • hybi
    New Member
    • Jun 2013
    • 2

    #2
    got it, a simple s| /.*|| was enough.

    Comment

    Working...