Loading ...
Sorry, an error occurred while loading the content.
 

[PBML] regex trouble or my brain feels like jello...

Expand Messages
  • Martin Sj√∂berg
    Hi! I m trying to make this regex work like I want it to. This is as close I ve come so far. while ($form{msg} =~ m/ b S{41,}? b/) { $form{msg} =~
    Message 1 of 1 , Aug 9, 1998
      Hi!

      I'm trying to make this regex work like I want it to.
      This is as close I've come so far.

      while ($form{msg} =~ m/\b\S{41,}?\b/)
      {
      $form{msg} =~ s/\b(\S{40})(\S+?)\b/$1 $2/;
      }

      This does what I want it to but only with letters and numbers.

      I want it to match any 'words' no mather what charcters except space
      and \n. Please be gentle..I'm only on page 30 in my Owl ;)

      Martin




      ----
      Read this list on the Web at http://www.makelist.com/list/perl-beginner/
      To unsubscribe, email to perl-beginner-unsubscribe@...
      To subscribe, email to perl-beginner-subscribe@...
      --
      Start a FREE E-Mail List at http://www.makelist.com !
    Your message has been successfully submitted and would be delivered to recipients shortly.