in reply to Re^3: Limiting number of regex matches
in thread Limiting number of regex matches
Yes, why use a regex to match for an obvious substring in this case, when a string could be splited into an array, a slice of that which got the required output printed?
Please, don't forget that the OP also asked among other things "..Is there no other way.."? Am simply showing, some other ways, in this case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Limiting number of regex matches
by Anonymous Monk on Sep 25, 2012 at 23:51 UTC |