Separate the house number from the street name: Difference between revisions
Separate the house number from the street name (view source)
Revision as of 13:55, 31 July 2014
, 9 years agoJ: additional labelling
m (J: (stylistic change) add J's prompt (three spaces) to left of invocation line in example) |
m (J: additional labelling) |
||
Line 46:
'''Solution''' (''regex''):<lang j> require'regex'
din5008 =: split~ [: {.@, '\d'&rxmatch</lang>
Sample data (works withe either of the above implementations):
<lang j> sampledata=: ];._2 noun define
|