Le mer. 24 janv. 2024 à 11:44, Qian Yun <[email protected]> a écrit :
>
> Are you replacing one char with another char,
> or are you replacing n chars with n chars?
I would like both :) And eventually n chars with m chars like:
replace("abcd", "cd", "efgh")
=> "abefgh"
> There's Lisp function SUBSTITUTE and REPLACE, but not very easy to use.
> A wrapper is needed.
Oh, thanks, I forgot. I use another technique not available in FriCAS
for now though, but that could be handy I think.
>
> - Qian
>
> On 1/24/24 18:32, Grégory Vanuxem wrote:
> > Hello,
> >
> > Small question, is there a simple to use function to replace some
> > characters or strings in a string, for example:
> >
> > replace("ababab", "b", "c")
> > => "acacac"
> >
> > Regards,
> >
> > - Greg
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/fricas-devel/de204043-b21c-4998-84a5-95e44483362f%40gmail.com.
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dYd%2BZL6PK504PMxktW0-bTLL%3D3UibxoP1xUbHDH2exkCQ%40mail.gmail.com.