<?xml version="1.0" encoding="windows-1252"?>
<node id="1002493" title="Re: trouble with regular expressions" created="2012-11-06 09:46:46" updated="2012-11-06 09:46:46">
<type id="11">
note</type>
<author id="616540">
moritz</author>
<data>
<field name="doctext">
&lt;blockquote&gt;my code &lt;c&gt;s/(\;do.*)(\&lt;\/iframe\&gt;\'\)\;)/sss/;&lt;/c&gt; matches only first 4 symbols...&lt;/blockquote&gt;

&lt;p&gt;The regex inside your substitution matches the whole string, not "only first 4 symbols", whatever you mean by "symbol".&lt;/p&gt;

&lt;p&gt;So, what do you want to do?&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update&lt;/b&gt;: The OP silently updated his node, so this reply might or might not be irrelevant now.&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-616540"&gt;
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1002482</field>
<field name="parent_node">
1002482</field>
</data>
</node>
