Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wildcard into .properties

Does exist any method in witch i can add a wildcard into a properties file, and have the meaning of everything, like a.b.*.c.d=lalalala, or set a regex for all that ends in a.b.c=anything?

like image 759
teo panait Avatar asked Mar 25 '26 20:03

teo panait


1 Answers

A normal Java properties file doesn't handle this, no. Bear in mind that it's a hashtable really, usually mapping strings to strings.

It sounds like you probably want to create your own class for this - but perhaps you could use a Properties object as a simple way of inserting the data?

like image 95
Jon Skeet Avatar answered Mar 27 '26 10:03

Jon Skeet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!