<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FindBetween: A Useful GREP String</title>
	<atom:link href="http://indesignsecrets.com/findbetween-a-useful-grep-string.php/feed" rel="self" type="application/rss+xml" />
	<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php</link>
	<description>InDesignSecrets Blog and Podcast</description>
	<lastBuildDate>Wed, 23 May 2012 23:34:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-499368</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Mon, 14 May 2012 10:21:48 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-499368</guid>
		<description>You need to double each and every single backslash in your findWhat expression.

Any random questions on scripting are better asked in the Scripting forum. You can go there (surprise!) by clicking the word &quot;Forum&quot; at the top of this page. You can register for free (suprise again!) and then ask away.</description>
		<content:encoded><![CDATA[<p>You need to double each and every single backslash in your findWhat expression.</p>
<p>Any random questions on scripting are better asked in the Scripting forum. You can go there (surprise!) by clicking the word &#8220;Forum&#8221; at the top of this page. You can register for free (suprise again!) and then ask away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joan chan</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-499365</link>
		<dc:creator>joan chan</dc:creator>
		<pubDate>Mon, 14 May 2012 07:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-499365</guid>
		<description>hi, please help me with these script in indesign CS3

app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
app.findChangeGrepOptions.includeFootnotes = true;
app.findChangeGrepOptions.includeHiddenLayers = true;
app.findChangeGrepOptions.includeLockedLayersForFind = true;
app.findChangeGrepOptions.includeLockedStoriesForFind = true;
app.findChangeGrepOptions.includeMasterPages = true;
app.findGrepPreferences.findWhat = &quot;(\[*\\d{1,2}&#124;\[~8{3}\])/(\[*\\d{1,2}&#124;\[~8{3}\])/(\[*\\d{4}&#124;\[~8{3}\])&quot;;
app.changeGrepPreferences.changeTo = &quot;$1@@$2@@$3&quot;;
app.changeGrepPreferences.underline = true;
app.changeGrep();
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;

I found that it can work with Find/Change Box in Grep but not with the java script, why??</description>
		<content:encoded><![CDATA[<p>hi, please help me with these script in indesign CS3</p>
<p>app.findGrepPreferences = NothingEnum.nothing;<br />
app.changeGrepPreferences = NothingEnum.nothing;<br />
app.findChangeGrepOptions.includeFootnotes = true;<br />
app.findChangeGrepOptions.includeHiddenLayers = true;<br />
app.findChangeGrepOptions.includeLockedLayersForFind = true;<br />
app.findChangeGrepOptions.includeLockedStoriesForFind = true;<br />
app.findChangeGrepOptions.includeMasterPages = true;<br />
app.findGrepPreferences.findWhat = &#8220;(\[*\\d{1,2}|\[~8{3}\])/(\[*\\d{1,2}|\[~8{3}\])/(\[*\\d{4}|\[~8{3}\])&#8221;;<br />
app.changeGrepPreferences.changeTo = &#8220;$1@@$2@@$3&#8243;;<br />
app.changeGrepPreferences.underline = true;<br />
app.changeGrep();<br />
app.findGrepPreferences = NothingEnum.nothing;<br />
app.changeGrepPreferences = NothingEnum.nothing;</p>
<p>I found that it can work with Find/Change Box in Grep but not with the java script, why??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-496377</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 13 Mar 2012 14:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-496377</guid>
		<description>Thank you for the help. I really appreciate the information :)</description>
		<content:encoded><![CDATA[<p>Thank you for the help. I really appreciate the information <img src='http://indesignsecrets.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-496226</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Fri, 09 Mar 2012 19:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-496226</guid>
		<description>Jamie, the problem is to locate any given character &lt;em&gt;somewhere inside&lt;/em&gt; a string, you would need a positive lookbehind of undetermined length. InDesign does not support that (that&#039;s not so weird, I have yet to find a program that uses GREP that can).</description>
		<content:encoded><![CDATA[<p>Jamie, the problem is to locate any given character <em>somewhere inside</em> a string, you would need a positive lookbehind of undetermined length. InDesign does not support that (that&#8217;s not so weird, I have yet to find a program that uses GREP that can).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-496221</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Fri, 09 Mar 2012 18:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-496221</guid>
		<description>Hello, any help is greatly appreciated.

I have this code that &quot;applies style to any character between and including the pipes (\x{07c})&quot;

(\x{07c})(.+)(\x{07c})

Works fine. 

But, the PROBLEM: I can&#039;t get it to let me specify any character within this: not a letter, not a caret....nothing. Any ideas on how to do this?

Basically, I have a normal paragraph that includes examples of HL7 messages. Like this. For example, &#124;AB^Abbott^^^MVX&#124;

WHY: In my full samples of Code (separate Code paragraph style) I have the Carets=red, the Pipes=green, etc.... I&#039;m trying to duplicate this, but I need it to only be between the pipes because these characters also exist in the paragraphs independently not as a coded sample.</description>
		<content:encoded><![CDATA[<p>Hello, any help is greatly appreciated.</p>
<p>I have this code that &#8220;applies style to any character between and including the pipes (\x{07c})&#8221;</p>
<p>(\x{07c})(.+)(\x{07c})</p>
<p>Works fine. </p>
<p>But, the PROBLEM: I can&#8217;t get it to let me specify any character within this: not a letter, not a caret&#8230;.nothing. Any ideas on how to do this?</p>
<p>Basically, I have a normal paragraph that includes examples of HL7 messages. Like this. For example, |AB^Abbott^^^MVX|</p>
<p>WHY: In my full samples of Code (separate Code paragraph style) I have the Carets=red, the Pipes=green, etc&#8230;. I&#8217;m trying to duplicate this, but I need it to only be between the pipes because these characters also exist in the paragraphs independently not as a coded sample.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Blatner</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-495426</link>
		<dc:creator>David Blatner</dc:creator>
		<pubDate>Wed, 08 Feb 2012 16:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-495426</guid>
		<description>@Lisa, as you can see in comments before yours, our site destroys a lot of grep codes, especially things with angle brackets. It thinks it&#039;s html code or something.

In general, I would recommend asking questions on our forum instead of a particular blog post. (Click forums in the nav bar up above. You&#039;ll need to have a free membership to post.) You&#039;ll still need to &quot;escape&quot; those special character with backslashes, but more people will see it there.</description>
		<content:encoded><![CDATA[<p>@Lisa, as you can see in comments before yours, our site destroys a lot of grep codes, especially things with angle brackets. It thinks it&#8217;s html code or something.</p>
<p>In general, I would recommend asking questions on our forum instead of a particular blog post. (Click forums in the nav bar up above. You&#8217;ll need to have a free membership to post.) You&#8217;ll still need to &#8220;escape&#8221; those special character with backslashes, but more people will see it there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-495424</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Wed, 08 Feb 2012 16:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-495424</guid>
		<description>Well that&#039;s weird - my grep string changed after I hit the comment button.</description>
		<content:encoded><![CDATA[<p>Well that&#8217;s weird &#8211; my grep string changed after I hit the comment button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-2#comment-495423</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Wed, 08 Feb 2012 16:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-495423</guid>
		<description>I work in the publishing industry and often have to format books, such as cookbooks. The text comes to me with tags at the beginning and end of each block that needs to be styled a certain way. This would be easy if the tag was at the beginning and/or end of each paragraph or line but it is not. I might have an entire ingredients list that begins with a tag, such as:



then lists the ingredients and after the last one, ends with:



The same goes for multiple paragraphs of text - codes at beginning and end of multiple paragraphs, not each one.

I am trying to figure out if it&#039;s possible to format these easily. I tried:

(?&lt;=).*?(?=)

but it only recognizes the first line. It seems the end paragraph mark messed things up. Any advice you can offer will be greatly appreciated. Thanks!</description>
		<content:encoded><![CDATA[<p>I work in the publishing industry and often have to format books, such as cookbooks. The text comes to me with tags at the beginning and end of each block that needs to be styled a certain way. This would be easy if the tag was at the beginning and/or end of each paragraph or line but it is not. I might have an entire ingredients list that begins with a tag, such as:</p>
<p>then lists the ingredients and after the last one, ends with:</p>
<p>The same goes for multiple paragraphs of text &#8211; codes at beginning and end of multiple paragraphs, not each one.</p>
<p>I am trying to figure out if it&#8217;s possible to format these easily. I tried:</p>
<p>(?&lt;=).*?(?=)</p>
<p>but it only recognizes the first line. It seems the end paragraph mark messed things up. Any advice you can offer will be greatly appreciated. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-1#comment-495155</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Fri, 20 Jan 2012 10:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-495155</guid>
		<description>Aina, that is exactly what this post is about! The example changes the text inbetween to italics, but surely it ought to work the same for bold.

To find your specific word inside parentheses-but-excluding-them, don&#039;t use the wildcards but simply enter the to-be-found text:

(?&lt;=\()EX GST(?=\))</description>
		<content:encoded><![CDATA[<p>Aina, that is exactly what this post is about! The example changes the text inbetween to italics, but surely it ought to work the same for bold.</p>
<p>To find your specific word inside parentheses-but-excluding-them, don&#8217;t use the wildcards but simply enter the to-be-found text:</p>
<p>(?&lt;=\()EX GST(?=\))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aina Olvidado</title>
		<link>http://indesignsecrets.com/findbetween-a-useful-grep-string.php/comment-page-1#comment-495152</link>
		<dc:creator>Aina Olvidado</dc:creator>
		<pubDate>Fri, 20 Jan 2012 02:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/findbetween-a-useful-grep-string.php#comment-495152</guid>
		<description>I would like to ask how would you make the word inside the open and close parenthesis bold or how would you find a specific word inside the open and close parenthesis. 

for example: (EX GST)?

I can&#039;t figure out how to make a grep code for this one.</description>
		<content:encoded><![CDATA[<p>I would like to ask how would you make the word inside the open and close parenthesis bold or how would you find a specific word inside the open and close parenthesis. </p>
<p>for example: (EX GST)?</p>
<p>I can&#8217;t figure out how to make a grep code for this one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using disk

Served from: indesignsecrets.com @ 2012-05-23 23:50:09 -->
