473,471 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to delete text after slash in perl with truncation

2 New Member
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
Jun 6 '13 #1
1 1382
hybi
2 New Member
got it, a simple s| /.*|| was enough.
Jun 6 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Percy NG | last post by:
Hi ... I have text file contain such data 1111222233334444 i need delete particlar char without load all data into memory says delete 1st-5th char ..then the data in text file should...
2
by: Pipex News Group | last post by:
I Have a text file that I want to delete using the On Click event of a forms button, the text file is along the following path: C:\1.txt I have managed to create the text file from Access...
10
by: Guern1 | last post by:
Hi Just a quick question Is it possible from a Perl script to take a line of text which is generated by this Perl script and pass it to a PHP script which will deal with the web side of things...
2
by: kkazakos | last post by:
Hello, I am a newbie in perl and i have the following problem. I have as input a text file in the following format:...
6
by: 000dreamsound000 | last post by:
Hi I need help with to access a text file over my local network. I need to be able to create,read, write and delete the txt file on a specific machine(s) from any computer over the network. The...
3
by: Mike | last post by:
Is there a way to determine if a user deleted text in a asp:textbox? I have a textbox were users can enter in a product number, then they click a button to see if the product numbers(s) exists in...
2
by: Vinodhg | last post by:
Hello Sir/Madam, I am writing a perl script to find a word from a file.. #!/usr/local/bin/perl unless (open(VINODH, "vinodh.txt")) { die("Cannot open input file vinodh.txt") }...
3
by: f6600840 | last post by:
Hi, What function I should use if I want to clean text using perl. Example. Input for my perl based shell command is SMI-1234 566.5.2.3.4.5.5.192.168.1.1 = "huuhaa" : SMI-1234...
1
nev
by: nev | last post by:
i have a textbox.text = "hello" given a start point = 2, i would like to delete the 2 'L' my final textbox.text = "heo" how to do this?
4
by: phoenie | last post by:
Hi everyone, I am a newbie in Perl. I would like to know how to extract the abbreviation from a given text using Perl. For example, Dr. Alex is a very smart doctor. He is from USA. Then my...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.