tale103108 has asked for the wisdom of the Perl Monks concerning the following question:
Given strings like "Database_Test_Access_DB" and "Database_Development_Access_DB", I wish to get just "Test" and "Development" from the above-mentioned strings. In other words, I would like to get the string that starts after the first '_' and ends with the next (second) '_'. I would believe that a regex would be do the trick but would like your input. I respectfully ask for eternal guidance from those monks of the Perl monastery. Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get substring between first and second character
by choroba (Cardinal) on Jan 17, 2013 at 17:49 UTC | |
|
Re: How to get substring between first and second character
by BillKSmith (Monsignor) on Jan 17, 2013 at 18:38 UTC | |
by tale103108 (Novice) on Jan 17, 2013 at 19:51 UTC | |
by Kenosis (Priest) on Jan 17, 2013 at 20:52 UTC | |
|
Re: How to get substring between first and second character
by pvaldes (Chaplain) on Jan 18, 2013 at 16:53 UTC |