Using regular expressions when reading a file

forkit forkit at gmail.com
Fri May 6 09:59:42 UTC 2022


On Friday, 6 May 2022 at 07:51:01 UTC, Alexander Zhirov wrote:
> On Friday, 6 May 2022 at 05:40:52 UTC, forkit wrote:
>> auto myTuple = line.split(" = ");
>
> Well, only if as a strict form :)

well.. a settings file should be following a strict format.

..otherwise...anything goes... and good luck with that...

regex won't help you either in that case...

e.g:

user =som=eu=ser  (how you going to deal with this ?)



More information about the Digitalmars-d-learn mailing list