I need to split a string which has multiple repitititions of a pattern only on the first occurrence of the pattern.
Case in point being the string mentioned below :
Aggregate: f3050-184-160:EmptyAggr
I need to split the string on ":" on the first occurrence only i.e when it appears after Aggregate.
Is this possible via split in a single step or do i need to post-process the array after split.
Thanks in advance!
In reply to Splitting on a pattern once by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |