Re: find position in a list made by string by searching incomplete string
- To: mathgroup at smc.vnet.net
- Subject: [mg130360] Re: find position in a list made by string by searching incomplete string
- From: debguy <johnandsara2 at cox.net>
- Date: Thu, 4 Apr 2013 22:32:16 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <kjkc5e$7mu$1@smc.vnet.net>
Map[(StringPosition[#, "b "]) &, list1[[1]]] I don't think Position looks inside strings. You need to use a string function to do it. You gave a list of strings so Map checks each and returns all finds in a List.