abhay180 has asked for the wisdom of the Perl Monks concerning the following question:
The length of string is not fixed . There could be any number of "/" partitions. What is the efficient way of doing this.a/b/c/p0/m0/b0/r_a_c1_0/q a/b/c/p0/m0/b0/r_a_c1_1/q a/b/c/p0/m0/b0/r_a_c1_2/q a/b/c/p0/m0/b1/r_a_c1_0/q a/b/c/p0/m0/b1/r_a_c1_1/q a/b/c/p0/m0/b1/r_a_c1_2/q so on... I want to summarize this pattern as : a/b/c/p0/m0/b*/r_a_c1_*/q
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: summarize similar strings
by tybalt89 (Monsignor) on Dec 28, 2019 at 00:41 UTC | |
by abhay180 (Sexton) on Dec 28, 2019 at 07:11 UTC | |
by tybalt89 (Monsignor) on Dec 28, 2019 at 08:17 UTC | |
by abhay180 (Sexton) on Dec 28, 2019 at 08:59 UTC | |
by tybalt89 (Monsignor) on Dec 28, 2019 at 07:33 UTC | |
|
Re: summarize similar strings
by harangzsolt33 (Deacon) on Dec 28, 2019 at 07:24 UTC | |
by abhay180 (Sexton) on Dec 28, 2019 at 09:03 UTC | |
by Anonymous Monk on Dec 28, 2019 at 17:38 UTC | |
by harangzsolt33 (Deacon) on Dec 28, 2019 at 21:45 UTC |