For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2006 > Re: [SPAM DETECT] split and grouping in regexp









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SPAM DETECT] split and grouping in regexp
Uri Guttman

2006-10-31, 3:57 am

>>>>> "XM" == Xavier Mas <xaviermasr@ya.com> writes:

XM> A Dimarts 31 Octubre 2006 02:22, Daniel Kasak va escriure:[color=darkred]

XM> split function can't accept an expression on its syntax, only a
XM> character as separator field.

where did you learn that mistaken fact? it is completely wrong. in fact
it is the opposite, as split ONLY takes a regex for its first arg. you
can't just pass it a string or a char, they are converted to a regex.

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com