Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10876

Re: regex; ^ and $

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: regex; ^ and $
Date 2011-12-19 08:09 -0800
Organization http://groups.google.com
Message-ID <6353561.710.1324310998487.JavaMail.geo-discussion-forums@prfc16> (permalink)
References <a496fcef-d720-47ea-b2ea-76e504355334@h11g2000yqd.googlegroups.com>

Show all headers | View raw


On Monday, December 19, 2011 7:59:52 AM UTC-8, oldyork90 wrote:
> Perl guy learning Java.
> 
> Java's use of including line boundaries arguments, ^ and $, in
> matcher, and then not using them in other string replace functions is
> fine I guess; I'll get used to it.
> 
> I was wondering if there was a more perl like regex class out there
> that others might be using.

'Matcher' and 'Pattern' are what you got.

What exactly do you mean by "perl like [sic]"?

Of which "other string replace functions" do you speak?  If you're talking 
about the 'String' class, it does not claim to be a full regex implementation 
as 'Matcher' and 'Pattern' do.

In what respects _specifically_ do 'Matcher' and 'Pattern' fall short for you?

If you really want to program in Perl, you might not want to use Java to do so.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

regex; ^ and $ oldyork90 <oldyork90@yahoo.com> - 2011-12-19 07:59 -0800
  Re: regex; ^ and $ Lew <lewbloch@gmail.com> - 2011-12-19 08:09 -0800
  Re: regex; ^ and $ bugbear <bugbear@trim_papermule.co.uk_trim> - 2011-12-19 16:29 +0000
    Re: regex; ^ and $ oldyork90 <oldyork90@yahoo.com> - 2011-12-19 08:58 -0800
      Re: regex; ^ and $ Roedy Green <see_website@mindprod.com.invalid> - 2011-12-19 14:44 -0800
        Re: regex; ^ and $ Linus Flustillbe <admin@nacs.dyndns-office.com> - 2011-12-20 17:22 +0000
          Re: regex; ^ and $ Arne Vajhøj <arne@vajhoej.dk> - 2011-12-20 12:25 -0500
      Re: regex; ^ and $ Arne Vajhøj <arne@vajhoej.dk> - 2011-12-20 19:22 -0500

csiph-web