Does anyone have an example of how to use regexsplit
Brent Putman
putmanb at georgetown.edu
Fri Sep 28 16:00:39 EDT 2012
On 9/28/12 3:47 PM, Christopher Bongaarts wrote:
> I bumped into this on another project I was working on, since my perl
> fluency greatly exceeds my Java knowledge. The key difference seems to
> be that Perl's "match" operator means "find this pattern somewhere in
> the source string", while the Java match() method means "does this
> pattern exactly match the entire source string".
Ok. I suspected that Java might be surrounding the regex pattern with
an implicit "^....$" or something, but I couldn't find anything in the
Javadoc to confirm that. Perhaps I just missed. But that would explain it.
More information about the users
mailing list