Hi guys,

Thank you for the great responses (as usual)!
To be helped by the master himself feels like a privilege ;-)

I'm about to try this (or tomorrow morning first thing). I'm curious what
happens if the string is shorter than 16 chars..

Thanks again, imo this is the biggest asset for Nixos, this super helpful
community and willing people, thumbs-up to all of you!

Kind regards,

Erik

On Mon, Jan 25, 2016, 18:08 Eelco Dolstra <[email protected]>
wrote:

> Hi,
>
> On 25/01/16 17:16, 4levels wrote:
>
> > I'm currently looking (again) for the basic string functions.
> > Use case: I need to limit a parametric string's length to maximum 16
> characters
> > (indeed, MySql usernames cannot be longer than 16 characters).
> >
> > Any hints in the right direction to substring a string in case it is
> longer than
> > 16 chars are greatly appreciated ;-)
>
> builtins.substring 0 16 "blabla..."
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to