in reply to Re: Regex problem i think?
in thread Regex problem i think?

im going to try this out to see if it work's thanks for the reply, if you get time do you think you could describe what the join is doing im not very good with regex's

Replies are listed 'Best First'.
Re^3: Regex problem i think?
by GrandFather (Saint) on Sep 10, 2014 at 21:16 UTC

    See: join, perlretut, perlre and perlreref. Regular expressions are a language in their own right, a major player in Perl's team of tools, and have been adopted by many tools other than Perl. They are well worth becoming familiar with. It's at least worth knowing where to find documentation.

    The short version is: | is the alternation character. The match will succeed if any of the alternate matches separated by the | succeed. Join glues a list of strings together using the first string as the glue.

    If you are serious about learning and using Perl I strongly recommend you get a copy of the Perl Pocket Reference.

    Perl is the programming world's equivalent of English