<div>Hi, I have done basic functionality - It still needs more work but any feedback would be great<br></div><div><br></div><div>I did not implement the original proposal which can be found sooner in this mailing list, instead I made it more simple as Marc Delisle suggested</div>
<div><br></div><div>screen:</div><div><a href="http://phpmyadmin-regexreplace.karoldanko.com/screen1.png">http://phpmyadmin-regexreplace.karoldanko.com/screen1.png</a></div><div><br></div><div>just select 'regex' function in select fieldset, uncheck 'ignore' in replace fieldset</div>
<div><br></div><div>demo:</div><div><a href="http://phpmyadmin-regexreplace.karoldanko.com/">http://phpmyadmin-regexreplace.karoldanko.com/</a></div><div>user: parizank_test</div><div>pass: phpmyadmin</div><div><br></div>
<div>git:</div><div><a href="http://repo.or.cz/w/phpmyadmin-regexreplace.git">http://repo.or.cz/w/phpmyadmin-regexreplace.git</a></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">
On Sun, Apr 10, 2011 at 9:55 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le 2011-04-10 15:44, Karol Danko a écrit :<br>
<div class="im">> Hi Mark, thank you for reply<br>
><br>
> I will use both POSIX (for WHERE) and PCRE for (match&replace)<br>
><br>
> The script will first select all rows matching WHERE fieldset<br>
> after that it will loop the results and handle the replace via PHP<br>
> (2nd fieldset MATCH and 3rd fieldset REPLACE)<br>
><br>
> (So to check all rows with PHP, the WHERE fieldset would be empty)<br>
><br>
> The problem however is the use of both POSIX and PCRE on the same page which<br>
> may be confusing,<br>
> but using only MySQL POSIX would make more complicated replaces impossible.<br>
> On the other hand using only PHP's PCRE and looping all the results may be<br>
> very inefficient on large result sets.<br>
<br>
</div>Indeed. About the interface, don't you think that introducing a new<br>
syntax ($1 and #1) would be too confusing?<br>
<br>
I think it would be better to offer a simpler syntax even if this means<br>
having less functionality. Therefore you would keep the "standard" way<br>
of using a backreference, a backslash followed by a digit.<br>
<div><div class="h5"><br>
><br>
> On Sun, Apr 10, 2011 at 12:45 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br>
><br>
>> Le 2011-04-10 05:35, Karol Danko a écrit :<br>
>>> Hi everybody,<br>
>>><br>
>>> (I used phpmyadmin-users mailing first but I did not receive any response<br>
>> so<br>
>>> sorry for double-post)<br>
>>><br>
>>> I'm new to phpmyadmin development, so far I have been just passive daily<br>
>>> user.<br>
>>> I think phpmyadmin is great and I would love to help making it even<br>
>> better.<br>
>>><br>
>>> I'm working on regex-replace interface for phpmyadmin:<br>
>>><br>
>> <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1398891&group_id=23067&atid=377411" target="_blank">http://sourceforge.net/tracker/index.php?func=detail&aid=1398891&group_id=23067&atid=377411</a><br>

>>><br>
>>><br>
>>> I would love to hear your thoughts about this concept I have, I suggest<br>
>>> following UI:<br>
>>> <a href="http://karoldanko.com/img/regex-replace.png" target="_blank">http://karoldanko.com/img/regex-replace.png</a><br>
>><br>
>> Hi Karol,<br>
>> I'll have suggestions about the interface but first a question.<br>
>><br>
>> Looking at <a href="http://dev.mysql.com/doc/refman/5.5/en/regexp.html" target="_blank">http://dev.mysql.com/doc/refman/5.5/en/regexp.html</a> it seems<br>
>> that MySQL REGEXP is based on POSIX extended regular expressions and not<br>
>> PCRE (which supports back references).<br>
>><br>
>><br>
>> --<br>
>> Marc Delisle<br>
>> <a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
<br>
--<br>
Marc Delisle<br>
<a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
------------------------------------------------------------------------------<br>
Xperia(TM) PLAY<br>
It's a major breakthrough. An authentic gaming<br>
smartphone on the nation's most reliable network.<br>
And it wants your games.<br>
<a href="http://p.sf.net/sfu/verizon-sfdev" target="_blank">http://p.sf.net/sfu/verizon-sfdev</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
</div></div></blockquote></div><br>