regex replace quick question

azp

Client
Регистрация
26.12.2012
Сообщения
52
Благодарностей
3
Баллы
8
I want to change
Код:
[IMG]http://LINK[/IMG]
into html code using word processing
what is name of variable for regex matches?

my current regex:
what to search: \(.*)?\[\/img]
what to replace: <img src="WHAT_HERE">

obviously that does not work, as syntax for regex match '()' is taken from perl...
how do i do that in zenno ?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Hi!

So.. you have
Код:
[IMG]http://LINK[/IMG]
and want to get
Код:
<img src="http://LINK">
Correct?
 

azp

Client
Регистрация
26.12.2012
Сообщения
52
Благодарностей
3
Баллы
8
Yes. I have managed to do it with c# snippet, but sill interested how it can be done via gui, with regex.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You just need to use Text processing - Replace action.
Twice.
On first step you replace
Код:
[IMG]
with
Код:
<img src="
On second
Код:
[/IMG]
with
Код:
">
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)