1

I have such lines:

url.ru/?kluch word word word
url.ru/?2kluch word
url.ru/?2kluch word word
url.ru/?2kluch_word word-word

I need to put | between url and first space.

Try this:

Find: ^(.+)\s(.+)

Replace with: $1|$2

But it doesn't work how i need.

4

1 回答 1

7

这对我有用:
查找^([^\s]+)\s
替换$1|

于 2013-05-23T12:25:35.357 回答