lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ghazal Gharooni <ghazal.gharo...@gmail.com>
Subject Re: Regex Help
Date Wed, 16 Dec 2009 07:02:43 GMT
Hello,
Why don't you use String Tokenizer for splitting the result?


On Tue, Dec 15, 2009 at 9:45 PM, Weiwei Wang <ww.wang.cs@gmail.com> wrote:
> I want to split this parsed result string: name:"zhong guo" name:friend
> server:172.16.65.79
>
> into
>
> name:"zhong guo"
> name:friend
> server:172.16.65.79
>
> how can I write a regular pattern to do that?
>
> I'm not familiar with regex and tried a few patterns which didn't work
>
> --
> Weiwei Wang
> Alex Wang
> 王巍巍
> Room 403, Mengmin Wei Building
> Computer Science Department
> Gulou Campus of Nanjing University
> Nanjing, P.R.China, 210093
>
> Homepage: http://cs.nju.edu.cn/rl/weiweiwang
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message