MathGroup Archive 2005

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

Search the Archive

Re: substrings at the end of words

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54996] Re: substrings at the end of words
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Wed, 9 Mar 2005 06:34:22 -0500 (EST)
  • References: <d0ju4u$n1m$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

a = {"edit", "listed", "called", "wedding"}

StringCases[a,"ed"~~WordBoundary]

Steve Luttrell

<fartous at mail15.com> wrote in message news:d0ju4u$n1m$1 at smc.vnet.net...
>a = {"edit", "listed", "called", "wedding"}
> StringCases[a, _ ~~ "ed"]
> Out[]= {{}, {ted}, {led}, {wed}}
> i want to extract only the "ed" string which located only at the end of 
> the
> words, i could not do that using the above code.
> thanks
> jack
> 



  • Prev by Date: Re: substrings at the end of words
  • Next by Date: Re: coloring only some substring
  • Previous by thread: Re: substrings at the end of words
  • Next by thread: Re: substrings at the end of words