Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulating Strings

  • To: mathgroup at
  • Subject: [mg28315] Re: Manipulating Strings
  • From: "Stephen P Luttrell" <luttrell at>
  • Date: Wed, 11 Apr 2001 02:00:55 -0400 (EDT)
  • References: <9ajmoi$>
  • Sender: owner-wri-mathgroup at

      "L", "NN" -> "N"}]

produces the output


"Brian Higgins" <bghiggins at> wrote in message
news:9ajmoi$sav at
> Dear Math group,
> I have a string with runs of repeated characters and  want to  replace
> sequences of repeated characters with a single character. For example
> consider the string
> Thus I want a function that will take the groups "LLL" and "NN" in the
> above string and replace them with "L" and "N".

  • Prev by Date: Re: I'm new
  • Next by Date: Re: Removing Audio "Clicking"
  • Previous by thread: Re: Manipulating Strings
  • Next by thread: Operations Research 2.0