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


Groups > comp.lang.java.help > #2200

Re: regex puzzle

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.help
Subject Re: regex puzzle
Date 2012-10-30 05:59 -0700
Organization Canadian Mind Products
Message-ID <pgiv881g37e73fek318423bvrmtncgto4e@4ax.com> (permalink)
References <olqt88d9p21pf9nau0j4pke7kmhq08u5o4@4ax.com> <f7a2eec3-eca9-468a-8d8a-3d8bf360a530@googlegroups.com>

Show all headers | View raw


On Mon, 29 Oct 2012 14:48:28 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>including the quotation marks?
 
I am scanning postable HTML trying to convert things surrounded in
&quot; to a style, no embedded space allowed, but embedded entity
allowed to be left intact.

e.g.
&quot;cat&quot; (hex  2671756F743B6361742671756F743B  in  ASCII.)
to <span class="quoted">cat</span>  From there the style will be
refined manually.


&quot;na&iuml;ve&quot; (hex
2671756F743B6E612669756D6C3B766567261756F743B in ASCII) to
 <span class="quoted">na&iuml;ve</span>
 

The tricky part is the search where & inside is ok, even though the
terminator also starts with &.

This is further complicated by the fact I have not yet written a regex
utility that uses Java conventions. Funduc has its own quite different
ones. I thought one proffered solution could be modified for Funduc,
or I might cook up a one-shot Java utility with hard-coded constants
to avoid the problem if having deal with escaping parameters.


-- 
Roedy Green Canadian Mind Products http://mindprod.com
Let all things be done decently and in order. ~ I Corinthians 14:40.
Apparently, Jehovah disapproves of Java Threads.

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


Thread

regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-10-29 13:46 -0700
  Re: regex puzzle Lew <lewbloch@gmail.com> - 2012-10-29 14:48 -0700
    Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-10-30 05:59 -0700
      Re: regex puzzle "Peter J. Holzer" <hjp-usenet2@hjp.at> - 2012-10-30 14:48 +0100
        Re: regex puzzle markspace <-@.> - 2012-10-30 14:16 -0700
          Re: regex puzzle "Peter J. Holzer" <hjp-usenet2@hjp.at> - 2012-10-31 09:54 +0100
            Re: regex puzzle markspace <-@.> - 2012-10-31 11:25 -0700
              Re: regex puzzle "Peter J. Holzer" <hjp-usenet2@hjp.at> - 2012-11-01 13:56 +0100
                Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-11-01 18:46 -0700
          Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-10-31 07:09 -0700
        Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-10-31 07:11 -0700
          Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-10-31 16:22 -0700
            Re: regex puzzle markspace <-@.> - 2012-10-31 17:29 -0700
              Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-11-01 18:43 -0700
  Re: regex puzzle Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-10-30 16:39 -0700
    Re: regex puzzle Roedy Green <see_website@mindprod.com.invalid> - 2012-10-31 07:33 -0700

csiph-web