Does anyone have an example of how to use regexsplit
Brent Putman
putmanb at georgetown.edu
Fri Sep 28 15:41:03 EDT 2012
On 9/28/12 3:36 PM, Brent Putman wrote:
>
> This is different than Perl 5's behavior, which does match:
>
> perl -le '($result) = "Faculty/pt" =~
> /(Student|faculty|Faculty|Staff)/; print $result;'
>
>
I just noticed that I left out the beginning anchor '^' in the Perl
example, but it does still work with it in there:
perl -le '($result) = "Faculty/pt" =~
/^(Student|faculty|Faculty|Staff)/; print $result;'
So go figure.
More information about the users
mailing list