On Tue, 29 Jul 2008 19:17:18 GMT, "eSQueL" <eSQueL@libero.it> wrote: http://www.paleoseti.it/e107_plugins/content/content.php?content.167 Una osservazione matematica: Percio', aggiungendo 1 creazione (per zero dimensioni) in testa alla Gauss-like, la somma sale a 2048 (che, peraltro, è numero decisamente interessante visto che la sua divisone per 2 ripetuta 11 volte restituisce
On Thu, 30 Aug 2007 20:00:24 +0200, Rune Runnest� <rune@FASTLANE.NO> wrote: It seems that I have not been precise enough when defining the criteria. I want to pick up records where STRING starts with '00' or '01'. '10' as a start is not meeting my criteria. The rest of STRING, from sign # 3 and further, must not contain only '0'. Rune Rune, Please give the following a regex
It seems that I have not been precise enough when defining the criteria. I want to pick up records where STRING starts with '00' or '01'. '10' as a start is not meeting my criteria. The rest of STRING, from sign # 3 and further, must not contain only '0'. Rune "Guido T" <cymraegerict@GMAIL.COM> wrote in message news:46638d360708300723l60aee7d6w7f57efd6b33b2ab2@mail.gmail.com... Hi
Hi Rune, Well ... if not verify(string,'0') then output myds1; else if string eq: '0' and compress(substr(string,2),'0') ne ' ' then output myds2; Would give the output using your test data, but that isn't what you say in the text one of the first two signs shall be a '0' so 10100000000 would be valid. Regards ++ Guido On 30/08/2007, Rune Runnest=F8 <rune@fastlane
Hi, Here is the solution to both problem: The second regexp expresion '/^(0\d||\d0)(0+)$/' means: ^ = End of line 0\d = zero followed by any digit || = OR 0+ = zero 1 or more times $ = end of line. The resulting code is: data myds1; if _n_ = 1 then re = prxparse('/^0+$/'); retain re; input string $char11.; if prxmatch(re, string) gt 0 then ok=1;else ok=0; datalines