<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexadvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Construction Advice</title><link>http://regexadvice.com/forums/68/ShowForum.aspx</link><description>&lt;P&gt;Find help building expressions to suit your needs. Consult the &lt;A href="http://regexlib.com"&gt;Regular Expression Library&lt;/A&gt; to find many pre-built expressions, and add your own once you've solved your construction problem in our forum.&lt;/P&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45535.aspx</link><pubDate>Thu, 21 Aug 2008 12:47:25 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45535</guid><dc:creator>ddrudik</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45535.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45535</wfw:commentRss><description>No worries here.</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45527.aspx</link><pubDate>Thu, 21 Aug 2008 07:05:13 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45527</guid><dc:creator>prometheuzz</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45527.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45527</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;ddrudik:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I think you may have misinterpreted my comment.&amp;nbsp; My comment was not directed at your choice of words.&amp;nbsp; My point was that there are many askers who visit &amp;quot;here&amp;quot; (this forum) and ask questions without having a full command of the basics of the forum (maybe it&amp;#39;s due to a basic spoken language barrier or&amp;nbsp;just ignoring the posting rules).&amp;nbsp; In any case, most of those that visit ask a question with less than full information and after they receive some sort of answer they never return.&amp;nbsp; While I would like full information at the first post as is requested at the top of the forum, I have come to realize if I want to answer the questions it takes patience to work with the asker.&amp;nbsp; That&amp;#39;s all, nothing much else to be read into my comment.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you for your (calm) explanation: I misinterpreted your reply. Please accept my apologies for my snippy answer!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45520.aspx</link><pubDate>Wed, 20 Aug 2008 22:58:38 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45520</guid><dc:creator>ddrudik</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45520.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45520</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;prometheuzz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;ddrudik:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;prometheuzz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What did you not understand about the request for a detailed explanation of your problem?&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I can understand your frustration but patience is the key to answering questions here.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;What do you mean by &amp;quot;here&amp;quot;? Is this forum some special place on the internet?&lt;/p&gt;&lt;p&gt;I asked the OP a question which he either ignored, or didn&amp;#39;t understand. If it was the latter, s/he just needed to ask for clarification instead of mindlessly posting another nonsensical one-line-question.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;With all due respect: as long as I am not abusive towards other forum members (which I&amp;#39;m not, IMO) and what I post is &amp;quot;on topic&amp;quot;, I will post whatever I like. Thank you. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I think you may have misinterpreted my comment.&amp;nbsp; My comment was not directed at your choice of words.&amp;nbsp; My point was that there are many askers who visit &amp;quot;here&amp;quot; (this forum) and ask questions without having a full command of the basics of the forum (maybe it&amp;#39;s due to a basic spoken language barrier or&amp;nbsp;just ignoring the posting rules).&amp;nbsp; In any case, most of those that visit ask a question with less than full information and after they receive some sort of answer they never return.&amp;nbsp; While I would like full information at the first post as is requested at the top of the forum, I have come to realize if I want to answer the questions it takes patience to work with the asker.&amp;nbsp; That&amp;#39;s all, nothing much else to be read into my comment.&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45518.aspx</link><pubDate>Wed, 20 Aug 2008 21:06:46 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45518</guid><dc:creator>ddrudik</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45518.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45518</wfw:commentRss><description>&lt;p&gt;qwerty53, if you want to match as your described in the title of the question you would need to use capture groups and then replace capture group 0 with the three capture groups used:&lt;/p&gt;&lt;p&gt;&lt;u&gt;$sourcestring before replacement:&lt;br /&gt;&lt;/u&gt;&lt;span style="color:#000066;"&gt;1x2x3x4x5x6x7x8x9x&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000066;"&gt;&lt;/span&gt;&lt;u&gt;Raw Match Pattern:&lt;/u&gt;&lt;br /&gt;&lt;span style="color:#000066;"&gt;((?:.*?x){3}).*?(x(?:.*?x){3}).*?(x.*)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Raw Replace Pattern:&lt;/u&gt;&lt;br /&gt;&lt;span style="color:#000066;"&gt;$1$2$3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;$sourcestring after replacement:&lt;/u&gt;&lt;br /&gt;&lt;span style="color:#000066;"&gt;1x2x3xx5x6x7xx9x&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45517.aspx</link><pubDate>Wed, 20 Aug 2008 20:54:53 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45517</guid><dc:creator>prometheuzz</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45517.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45517</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;ddrudik:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;prometheuzz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What did you not understand about the request for a detailed explanation of your problem?&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I can understand your frustration but patience is the key to answering questions here.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;What do you mean by &amp;quot;here&amp;quot;? Is this forum some special place on the internet?&lt;/p&gt;&lt;p&gt;I asked the OP a question which he either ignored, or didn&amp;#39;t understand. If it was the latter, s/he just needed to ask for clarification instead of mindlessly posting another nonsensical one-line-question.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;With all due respect: as long as I am not abusive towards other forum members (which I&amp;#39;m not, IMO) and what I post is &amp;quot;on topic&amp;quot;, I will post whatever I like. Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45515.aspx</link><pubDate>Wed, 20 Aug 2008 20:41:02 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45515</guid><dc:creator>prometheuzz</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45515.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45515</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;qwerty53:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;prometheuzz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What did you not understand about the request for a detailed explanation of your problem?&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I want to capture all chars but those I skip &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If that is the best explanation you can give, I&amp;#39;m out.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Good luck. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45514.aspx</link><pubDate>Wed, 20 Aug 2008 20:40:38 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45514</guid><dc:creator>ddrudik</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45514.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45514</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;prometheuzz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What did you not understand about the request for a detailed explanation of your problem?&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I can understand your frustration but patience is the key to answering questions here.&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45513.aspx</link><pubDate>Wed, 20 Aug 2008 20:38:20 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45513</guid><dc:creator>ddrudik</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45513.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45513</wfw:commentRss><description>&lt;p&gt;qwerty53, you cannot skip characters in a capture group (in your case capture group 0), the best you can do is create capture groups with ( ) such as:&lt;/p&gt;&lt;p&gt;(z)[^z]*(z)&lt;/p&gt;&lt;p&gt;capture&amp;nbsp;groups 1 and 2&amp;nbsp;are your target.&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45512.aspx</link><pubDate>Wed, 20 Aug 2008 20:31:33 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45512</guid><dc:creator>qwerty53</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45512.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45512</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;prometheuzz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What did you not understand about the request for a detailed explanation of your problem?&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I want to capture all chars but those I skip &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45510.aspx</link><pubDate>Wed, 20 Aug 2008 20:27:50 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45510</guid><dc:creator>prometheuzz</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45510.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45510</wfw:commentRss><description>What did you not understand about the request for a detailed explanation of your problem?&lt;br /&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45509.aspx</link><pubDate>Wed, 20 Aug 2008 20:21:48 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45509</guid><dc:creator>qwerty53</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45509.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45509</wfw:commentRss><description>For example: from the string &amp;quot;zdfgdfgdfgz&amp;quot; I want to get &amp;quot;zz&amp;quot;&lt;br /&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45508.aspx</link><pubDate>Wed, 20 Aug 2008 19:36:03 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45508</guid><dc:creator>mash</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45508.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45508</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://regexadvice.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;qwerty53:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://regexadvice.com/blogs/mash/archive/2007/06/01/Are-you-ready-for-regex_3F00_.aspx"&gt;http://regexadvice.com/blogs/mash/archive/2007/06/01/Are-you-ready-for-regex_3F00_.aspx&lt;/a&gt; &lt;/p&gt;&lt;p&gt;I don&amp;#39;t know what you are trying to do but it doesn&amp;#39;t sound like a regex problem &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45506.aspx</link><pubDate>Wed, 20 Aug 2008 19:24:49 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45506</guid><dc:creator>prometheuzz</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45506.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45506</wfw:commentRss><description>&lt;p&gt;What do you mean by &amp;quot;skips&amp;quot;?&lt;/p&gt;&lt;p&gt;A more detailed explanation of what you&amp;#39;re looking for would help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x</title><link>http://regexadvice.com/forums/thread/45505.aspx</link><pubDate>Wed, 20 Aug 2008 19:17:37 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:45505</guid><dc:creator>qwerty53</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/forums/thread/45505.aspx</comments><wfw:commentRss>http://regexadvice.com/forums/commentrss.aspx?SectionID=68&amp;PostID=45505</wfw:commentRss><description>&lt;p&gt;Expression that skips the chars between 3rd and 4th and between 7th and 8th occurrences of x.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>