According to The Economist's Style Guide; 6ft and 200km are correct.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lettow, Kenneth
Sent: Friday, March 04, 2011 15:13
To: Programming forum
Subject: Re: [Jprogramming] Amending boxed array.

Unfortunately, my real world set has a lot of combined alpha/number
strings.  These are search engine strings like 10hp motor, 500gpm pump,
step ladder 6ft, etc.  

People are very lazy with their spacing when entering queries into
search engines.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Marshall
Lochbaum
Sent: Friday, March 04, 2011 4:07 PM
To: 'Programming forum'
Subject: Re: [Jprogramming] Amending boxed array.

This doesn't catch 'r2d2' . It only gets the words that are entirely
made up
of numbers.

Marshall

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Friday, March 04, 2011 3:57 PM
To: Programming forum
Cc: Lettow, Kenneth
Subject: Re: [Jprogramming] Amending boxed array.

On Fri, Mar 4, 2011 at 3:37 PM, Lettow, Kenneth <[email protected]>
wrote:
> I have a bunch of strings where each string is boxed and each word in 
> the string is also boxed.
>
> The problem is to replace any word that contains a number with a 
> generic string i.e. "NUMBER".
>
> For example, if the input phrases are:
>
> test=: (<;:'dogs and cats'),(<;:'3 blind mice'),(<<'alpha'),(<;:'6 
> plus 100'),(<;:'robot model r2d2')
>
> The output should be:
>
> output=: (<;:'dogs and cats'),(<;:'NUMBER blind 
> mice'),(<<'alpha'),(<;:'NUMBER plus NUMBER'),(<;:'robot model NUMBER')

   'NUMBER'"_^:(_ -.@-:_&".)L:0 test

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to