From: Andrew Choi Date: 2010-03-17T06:12:34+09:00 Subject: Re: Need to step through text in Variable --653859131-1268773955=:26595 Content-Type: multipart/alternative; boundary="1091918713-1268773955=:26595" MIME-Version: 1.0 --1091918713-1268773955=:26595 Content-transfer-encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 unsubscribe -----Original Message----- From: "Jean-Julien Fleck" [jeanjulien.fleck@gmail.com] Date: 03/16/2010 04:57 PM To: "ruby-talk ML" Subject: Re: Need to step through text in Variable Note: Original message sent as attachment ------------------------------------------------------------ Weight Loss Program Lose up to 20 lbs in one month with a new diet. Click here. http://216.21.215.31/c?cp=3DfGAHwDvcxp_ITBgk6ZX-9wAAKZVY5T0TJO72Jl_bl7CO2arf= AAYAAAAAAAAAAAAAAAAAAADNAAAAAAAAAAAAAAAAAAAEUq6NZeY=3D --1091918713-1268773955=:26595 Content-transfer-encoding: quoted-printable Content-Type: text/html; charset=UTF-8 unsubscribe





-----Original Message-----
From: "Jean-Julien Fleck" [jeanjulien.fleck@gmail.com]
Date: 03/16/2010 04:57 PM
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Subject: Re: Need to step through text in Variable

Note: Original message sent as attachment
= = = = = = = =
= = = = = = = = = = = = =
  Weight Loss Program=
Lose up to 20 lbs in one month with = a new diet. Click here.
Click Here For More Informati= on
=
 
--1091918713-1268773955=:26595-- --653859131-1268773955=:26595 Content-Type: message/rfc822; charset=UTF-8; name="0riginal_message" Content-Disposition: attachment; filename="0riginal_message" x-btFieldFwd: Yes Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on aspam003.roc2.bluetie.com X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=RDNS_NONE autolearn=disabled version=3.2.5 X-Original-To: achoi.myway@masc011.roc2.bluetie.com Delivered-To: achoi.myway@masc011.roc2.bluetie.com Received: from inbound006.roc2.bluetie.com (btroc2-lb.roc2.bluetie.com [10.200.2.8]) by mas000.roc2.bluetie.com (Postfix) with ESMTP id E0214D60125 for ; Tue, 16 Mar 2010 16:57:02 -0400 (EDT) Received: from carbon.ruby-lang.org ([221.186.184.68]) by inbound006.roc2.bluetie.com with inbound006 id twwx1d0191UxlsV01wwy6t; Tue, 16 Mar 2010 16:57:00 -0400 X-CMAE-Category: X-CMAE-Score: 0.00 X-CMAE-Analysis: v=1.1 cv=FgPLylYRbK7vk1vngtmxGRpCY99R4/Vy5TElp0nCBFg= c=1 sm=1 a=SE48hytvC9sA:10 a=ICSgjsODHzIA:10 a=8nJEP1OIZ-IA:10 a=fsK9XiHaSW3i/zTWbPYSMA==:17 a=0yUgMn2CsAEISIPVHPoA:9 a=f_D5tiY7zT_8EO809Tlcat6n2icA:4 a=wPNLvfGTeEIA:10 a=fsK9XiHaSW3i/zTWbPYSMA==:117 Received: from carbon.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id 403C73C21EB41; Wed, 17 Mar 2010 05:56:31 +0900 (JST) Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by carbon.ruby-lang.org (Postfix) with ESMTP id DFB5C3C21EB88 for ; Wed, 17 Mar 2010 05:56:24 +0900 (JST) Received: by fxm25 with SMTP id 25so409907fxm.7 for ; Tue, 16 Mar 2010 13:56:22 -0700 (PDT) Received: by 10.223.2.200 with SMTP id 8mr6439242fak.59.1268772982081; Tue, 16 Mar 2010 13:56:22 -0700 (PDT) Delivered-To: ruby-talk@ruby-lang.org Date: Wed, 17 Mar 2010 05:56:25 +0900 Posted: Tue, 16 Mar 2010 21:56:22 +0100 From: Jean-Julien Fleck Reply-To: ruby-talk@ruby-lang.org Subject: Re: Need to step through text in Variable To: ruby-talk@ruby-lang.org (ruby-talk ML) Message-Id: In-Reply-To: <38cfcf5b54e61c5ff24b61abdbf9fbd3@ruby-forum.com> References: <38cfcf5b54e61c5ff24b61abdbf9fbd3@ruby-forum.com> X-ML-Name: ruby-talk X-Mail-Count: 359144 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-talk-ctl@ruby-lang.org; help= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JE8mFvOnWuk+6YX0iIsTfxfEw23Vel25ks7lh/tOCR8=; b=ZD/72r46N2en7RSCIfivzyg2kDjFCLwhAne6bhXcUJq6JNfgM6dTUxWeGPu6rxcBfi 1LYy2hzEvaVGHR+Defqb0jlG9UhToxySJkxOUyVCCb6OHnK/NtIs/xOUi00nPluIKMCZ muqs9zxR7ZZspvVH7Kbb7yG3F6SUZW5UKnEOQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=dTdjNPkiDrQn11lngTjzyPCNX8f7VhwKnxEvWG/Zvg1uEY8EmufESq8ZkdlnZLr5/Z 5F4hs7tbwRcGDA0iylVCpXZw+30jlHJxwtV2wZPZeX9oeDG5YvWjlHjMXCtz70YK2ctp 1ECa9UotpEmUaMJLbatJlCF2jzqgURZJtEcXQ= Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Precedence: bulk Lines: 16 List-Id: ruby-talk.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: X-BtMT: Tue, 16 Mar 2010 16:57:02 -0400 (EDT) Hello Jack > What would be the best way to step through my z variable line by line > and match on the content with REGEX? z.split(/\n/).each do |line| ... end should do what you are looking for. Cheers, --=20 JJ Fleck PCSI1 Lyc=E9e Kl=E9ber --653859131-1268773955=:26595--