Avoid creating another array because it's not needed.
More practical examples with good handling.
Added DATA_WILDCARD constant for reference;

And a small extra comment.
Revision 1.2 for tiny changes.