Avatar of ambuli
ambuliFlag for United States of America

asked on 

Perl - How to find the string after a specific delimiter

Hi there,

I want to find the following

nameOne: string1 Value: 1234, 2345, 2454

I want to extract this so that
I can get the values for nameOne, Value, and the other two numbers in the end.  nameOne, and Value are followed by ":", but the ending numbers are separated by ",".
Value will be a numeric number too.


Perl

Avatar of undefined
Last Comment
ambuli
ASKER CERTIFIED SOLUTION
Avatar of wilcoxon
wilcoxon
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of ambuli
ambuli
Flag of United States of America image

ASKER

Thank you.  One other question.  What changes should I make if the line is

some other a nameOne: string1 Value: 1234, 2345, 2454
Avatar of ambuli
ambuli
Flag of United States of America image

ASKER

sorry

some other: a nameOne: string1 Value: 1234, 2345, 2454,
Avatar of ambuli
ambuli
Flag of United States of America image

ASKER

Thanks.
Perl
Perl

Perl is a high-level, general-purpose, interpreted, dynamic programming languages with over 25 years of development. Perl 5 runs on over 100 platforms from portables to mainframes and is suitable for both rapid prototyping and large-scale development projects. Perl gained widespread popularity as a Common Gateway Interface (CGI) scripting language, in part due to its regular expression and string parsing abilities. In addition to CGI, Perl is used for graphics programming, system administration, network programming, finance, bioinformatics, and other applications.

26K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo