Link to home
Start Free TrialLog in
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.


ASKER CERTIFIED SOLUTION
Avatar of wilcoxon
wilcoxon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ambuli

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

ASKER

sorry

some other: a nameOne: string1 Value: 1234, 2345, 2454,
Avatar of ambuli

ASKER

Thanks.