Re: Primes e Regex
- To: mathgroup at smc.vnet.net
- Subject: [mg130414] Re: Primes e Regex
- From: debguy <johnandsara2 at cox.net>
- Date: Wed, 10 Apr 2013 00:49:47 -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: <512CCBF6.8010504@wolfram.com> <kgmn96$8hn$1@smc.vnet.net>
you problem specification isn't totally clear so no clear answer can be given (what you showed is a List but you call it string, the format of answer isn't shown, exactly how to jump before or after matching isn't known) regex cannot do stepping of 20 char at a time while it's matching patterns, in general. use Mathematica to do such string work of "20 at a time" first. (ie, split the strings) there is ALLOT of documentation online if you google "Regular Expressions unix" or "manual page sed" (you can use sed(1) with Run) unix regex(3) can return levels of matches and probably do it: however it's not clear this would help your situation more than confuse it