Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] [tlug-digest] re: searching for kanji strings, ignore punctuation and end of lines
- Date: Mon, 16 Jan 2006 19:37:07 +0900
- From: David Riggs <dariggs@example.com>
- Subject: [tlug] [tlug-digest] re: searching for kanji strings, ignore punctuation and end of lines
- References: <200601160956.k0G9uYH9019349@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2
Thomas said: >------ Since you have to do it with a one line perl script. echo file.txt | perl -0777 -nle 's/((?:\np0001a0..00..)*[^\n]*A(?:\np0001a0..00..|\.)*B(?:\np0001a0..00..|\.)*C(?:\np0001a0..00..|\.)*D(?:\np0001a0..00..|\.)*E(?:\np0001a0..00..|\.)*F[^\n]*)/\n--start--\1\n--finish--/m;print' will give you the lines bracketed by --start-- p0001a05(00)-ghi.jklmn.op.rs.AB. p0001a06(00)-CD.EFtuvw.xyz. --finish-- -> Thanks. I will give something like this it a try. And Josh, thanks for the suggestion about Safari, but that book is not exactly easy to read! I have been avoiding buying it for too long. David
- Follow-Ups:
- Re: [tlug] [tlug-digest] re: searching for kanji strings, ignorepunctuation and end of lines
- From: Edward Middleton
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] searching for kanji strings, ignore punctuation and endof lines
- Next by Date: Re: [tlug] [Announcement] TLUG Technical Meeting 2006-01-14
- Previous by thread: Re: [tlug] searching for kanji strings, ignore punctuation and endof lines
- Next by thread: Re: [tlug] [tlug-digest] re: searching for kanji strings, ignorepunctuation and end of lines
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links