Items tagged with stringtools stringtools Tagged Items Feed

Hello

I need a procedure to unjumble a series of 9 letters into discernable 4 to 9 letter words. each letter can only be used once and it needs to include a given letter in each word. eg IOCMRELAE, and include R in each word

Acer did a similar thing a while back, but in this case it needs to tell it to permute 9 letters, then 8,....,then 4 (each including letter R).

 >with(StringTools): with(PatternDictionary):
>bid:= Create(`builtin`):

StringTools[Length]

May 03 2011 by gkokovidis 1626 Maple

restart:
with(StringTools):
Length("fc2c-cEImI0Qb1I#YZTdh7JyQ%3t#eUW7W,5,CMjUV/\WHv\rEYNLrBlkETbsy+");
                               61
Length("fc2c-cEImI0Qb1I#YZTdh7JyQ%3t#eUW7W,5,CMjUV/WHvrEYNLrBlkETbsy+");
                               61

I expect the first call to Length to return a value of 63.  The backslashes are being ignored.  Is this a "feature", or is the Length command not behaving as it should?

Another feature added to Maple 15 partially in response to the MaplePrimes forums is the new/improved ?HTTP package.  It provides one-step commands for fetching data from the web: much simpler than using the ?Sockets package directly. In most cases, the command ?HTTP,Get is what you would use:

 (s, page, h) := HTTP:-Get("http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors"):

The above fetches the HTML source of a page from Wikipedia and stores it as a string 'page'. The other two outputs are 's', and integer HTTP status code and 'h' a table of the headers returned in the HTTP response from the server.  Compare this to the amount of code needed to fetch data in my Baby Names application for Maple 12, for example.

I was recently asked a question on using regular expressions with ?type , and I thought it was interesting enough, to share here.

Page 1 of 1