EmEditor (text editor) Forum Index
   Regular Expressions
     How Separate Word ? Thanks.
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
emuser1
Posted on: 5/11/2009 5:46 am
Quite a regular
Joined: 3/22/2008
From:
Posts: 42
How Separate Word ? Thanks.
How can I Separate this following word with 'Tab' Key(use regular expressions, see examples) ? Thanks. Thanks for help, I has many data to Separate.

工aaa
苷aaf
芽aah
苣aan
荛aat
荫abe
蒸abi

Examples:
工 aaa
苷 aaf
芽 aah
MariaK
Posted on: 5/11/2009 7:50 am
Quite a regular
Joined: 2/3/2009
From: Germany
Posts: 43
Re: How Separate Word ? Thanks.
If each word placed at the beginning of the line, with this expression:

Find: ^.
Replace with: ^.\t
emuser1
Posted on: 5/11/2009 8:35 am
Quite a regular
Joined: 3/22/2008
From:
Posts: 42
Re: How Separate Word ? Thanks.
I Try But got the result as bottom. (The word replace to ^. ,original word miss). i used vista, emeditor 8.05. Thanks, hope help.

^. aaa aaaa
^. aaf aaff
^. aah aaht
^. aan aanf
^. aat aatq
^. abe abef
MariaK
Posted on: 5/11/2009 9:12 am
Quite a regular
Joined: 2/3/2009
From: Germany
Posts: 43
Re: How Separate Word ? Thanks.
Have you activate the ”Use Regular Expressions”-Option within the Replace-Dialog?
emuser1
Posted on: 5/11/2009 8:29 pm
Quite a regular
Joined: 3/22/2008
From:
Posts: 42
Re: How Separate Word ? Thanks.
Yes. I already active and used "Regular Expressions" Option within the Replace-Dialog.
If Can, Use My Examples For Test.

工aaaa
其adwu
东aii
了bnh
子bbbb
也bnhn
以nywy
又cccc
对cfy

Hope Help. Thanks.
MariaK
Posted on: 5/12/2009 3:03 am
Quite a regular
Joined: 2/3/2009
From: Germany
Posts: 43
Re: How Separate Word ? Thanks.
Oh, yes, sorry; forget my first expression, that’s nonsense. Take this one:

Find: ^.
Replace with: \0\t
emuser1
Posted on: 5/12/2009 8:22 pm
Quite a regular
Joined: 3/22/2008
From:
Posts: 42
Re: How Separate Word ? Thanks.
Thanks! It ok now,
But, I got new problem. how about current not a 'single word' (see below examples) ? some word has 2 char(unicode chinese), some word has 3 or 4 char? hope help again. many thanks.

examples:
子bbbb
工人aaaa
其實adwu
东南西北aii
了不起bnh

MariaK
Posted on: 5/13/2009 4:43 am
Quite a regular
Joined: 2/3/2009
From: Germany
Posts: 43
Re: How Separate Word ? Thanks.
Try this one (it’s a very simple construct; be careful):

Find: ^[[:unicode:]]+
Replace with: \0\t
emuser1
Posted on: 5/13/2009 8:23 pm
Quite a regular
Joined: 3/22/2008
From:
Posts: 42
Re: How Separate Word ? Thanks.
It work, very thanks ! You are very greated. Thanks again.
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文