| Groups | Results 1 - 10 of about 23,800 for G0 leading zeros perl. |
Sorted by relevance Sort by date |
Allen Smith perl...@perl.org perl perl5 porters # New Ticket Created by Allen Smith ... If necessary, the number will be padded on the left with leading zeros. http://groups.google.com/g/3a27feee/t/1128e5b06e79936e/.../b8c572d0d767e079?... |
194.203.212.8_[demerphq] comp lang perl misc According to Chas Friedman <fried...@math.utexas.edu>: Larry S <dime0...@yahoo.com> wrote in ... http://groups.google.com/g/f517ff05/t/78ed68db540982c3/.../c1ceb78693d6554d?... |
George P. pgeo...@cmie.com perl beginners On Fri, 9 May 2003, Toby Stuart wrote: I want to remove leading zeros from mathematical expressions for ... $expr = "05+0120*(006+04)"; $expr =~ s/([^\d]*)0+([\d]+)/$1$2/g; This should work for ... http://groups.google.com/g/6a37ff02/t/f81c0d179e43aa3f/d/49465c6efef5ba5b?... |
... out of DB2 UDB 8.1.5 I get a "+" and leading zeros to round out the field (see example below). I have a quick and dirty perl one-liner to fix this, but even after scouring the export documentation and searching the web, ... d*)/$1/g;' k.del 1,10.20. http://groups.google.com/g/b847fef0/t/19fc6e7e09d08b0b/d/92868fc3babec859?... |
Garry Short g4rry_sh...@zw4llet.com comp lang perl misc Michael Budash ... up with the following (via searches and copying code) to strip all leading zeros thru a ... with the g modifier on your substitution regex: $now_string =~ s/0(\d+)/$1/g; ... http://groups.google.com/g/f517ff05/t/6b2ced7169da84fc/d/83f66bd371e9ed62?... |
Wiggins d Anconia wigg...@danconia.org perl beginners Please bottom post. ... And I won't even go into the point that some months only have 28, 29, or 30 days ... less than 10 to have a leading zero, so 7th day of the month should say '07'. http://groups.google.com/g/6a37ff02/t/b0bfc4cf8b1f68e8/d/c1b7a3edf6828b02?... |
Actually, this behavior seems to be deemed undefined by the standard: "For d, i, o, u, x, X, e, E, f, g, and G conversions, leading zeros ... are used to pad the field ... http://groups.google.com/g/a657fefd/t/f7261ebcc17fd7ac/d/e15a1dfb0c4a9b5e?... |
... wrote: Have you tried taking the .txt file and doing some programming and processing in PERL? ... The first two "sed" commands strip any leading zeros. http://groups.google.com/g/fe47fef3/t/f14ab3eb252b6d2a/d/6b21ffb8aee8d4e?hl... |
"Karl Williamson" pub...@khwilliamson.com perl perl5 changes In perl.git, the ... It is customary but not required to use leading zeros to pad the number to 4 ... =back -You can the force a backreference interpretation always by using the C<\g{. http://groups.google.com/g/a737ff03/t/b1c578244ca4eb6f/d/2aab2acea1728685?... |
What I ususally do when reading in external data that has leading zeros is run it through the scan statement: set dateToTry "09/27/99" scan $dateToTry ... http://groups.google.com/g/4897fef1/t/18536545a521e4ad/d/2a29f7a44a73f7a7?... |
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |