MathGroup Archive 2005

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

Search the Archive

Re: substrings at the end of words


Why not just extract only the ends of the words first, and then only
ed from those?


On Tue, 8 Mar 2005 05:03:45 -0500 (EST), fartous at mail15.com
<fartous at mail15.com> wrote:
> 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
> 
> 


-- 
Chris Chiasson
Kettering University
Mechanical Engineering
Graduate Student
1 810 265 3161


  • Prev by Date: Re: SQLSelect
  • Next by Date: Re: Re: Re: Why does mathematica randomly rewrite notebooks?
  • Previous by thread: substrings at the end of words
  • Next by thread: Re: substrings at the end of words