<?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>
	ความเห็นบน: Regular Expression Framework	</title>
	<atom:link href="https://www.parinya.net/node/906/feed" rel="self" type="application/rss+xml" />
	<link>https://www.parinya.net/node/906</link>
	<description>ทฤษฎีการคำนวณสำหรับคอมพิวเตอร์และทฤษฎีการประมวลผลสารสนเทศ</description>
	<lastBuildDate>Fri, 21 Aug 2009 13:16:19 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		โดย: ดูหนัง		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-5881</link>

		<dc:creator><![CDATA[ดูหนัง]]></dc:creator>
		<pubDate>Fri, 21 Aug 2009 13:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-5881</guid>

					<description><![CDATA[ดูแล้วปวดหัวจริงๆ ด้วย]]></description>
			<content:encoded><![CDATA[<p>ดูแล้วปวดหัวจริงๆ ด้วย</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: PunNeng		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4403</link>

		<dc:creator><![CDATA[PunNeng]]></dc:creator>
		<pubDate>Wed, 30 Jul 2008 09:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4403</guid>

					<description><![CDATA[AMp: แม่นแล้ว]]></description>
			<content:encoded><![CDATA[<p>AMp: แม่นแล้ว</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: DominixZ		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4396</link>

		<dc:creator><![CDATA[DominixZ]]></dc:creator>
		<pubDate>Tue, 29 Jul 2008 03:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4396</guid>

					<description><![CDATA[ถ้ามีจริงๆ ก็คงดีครับ ผมก็ใช้ Regular Expression บ่อยอยู่เหมือนกันแต่ทว่าก็ยังอยากได้ Framework อยู่ดี ~o~ 

ส่วนใหญ่ถ้าไม่ใช้ Regular Expression ผมก็ใช้ jQuery ท่อง DOM เนี้ยและสะดวกสุดๆ]]></description>
			<content:encoded><![CDATA[<p>ถ้ามีจริงๆ ก็คงดีครับ ผมก็ใช้ Regular Expression บ่อยอยู่เหมือนกันแต่ทว่าก็ยังอยากได้ Framework อยู่ดี ~o~ </p>
<p>ส่วนใหญ่ถ้าไม่ใช้ Regular Expression ผมก็ใช้ jQuery ท่อง DOM เนี้ยและสะดวกสุดๆ</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: AMp		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4390</link>

		<dc:creator><![CDATA[AMp]]></dc:creator>
		<pubDate>Mon, 28 Jul 2008 10:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4390</guid>

					<description><![CDATA[Hpricot นี่ออกแนว css selector แฮะ]]></description>
			<content:encoded><![CDATA[<p>Hpricot นี่ออกแนว css selector แฮะ</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: Tai Parinya		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4387</link>

		<dc:creator><![CDATA[Tai Parinya]]></dc:creator>
		<pubDate>Mon, 28 Jul 2008 03:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4387</guid>

					<description><![CDATA[ผมไม่ได้เป็นคนคิดครับคุณโอ๋ มีคนคิดก่อนไปแล้ว ผมแค่ขยายความให้ทราบเฉย ๆ จ้า

ก็อย่างที่คุณ rux ว่านั่นแหล่ะครับ อะไรที่มันใช้บ่อย ๆ ก็น่าจะเอามาทำเป็น framework เน้อะ

โอ้ เป็นไวยากรณ์ที่ผมไม่เคยเห็นมาก่อนเลยครับคุณ punneng

ผมเห็นครั้งแรกสะดุ้งโคตรครับคุณ penguin เห็นสมัยตอนภาษา pearl โน่นแน่ะ น๊านนานมาแล้ว

ผมเห็นนักพัฒนาที่ microsoft เขาก็พยายามจะทำเป็นแบบที่คุณ AMp ว่า แล้วยัดเอาไว้ใน .NET Framework นะั แต่ไม่รู้ว่าตอนนี้ไปถึงไหนแล้ว]]></description>
			<content:encoded><![CDATA[<p>ผมไม่ได้เป็นคนคิดครับคุณโอ๋ มีคนคิดก่อนไปแล้ว ผมแค่ขยายความให้ทราบเฉย ๆ จ้า</p>
<p>ก็อย่างที่คุณ rux ว่านั่นแหล่ะครับ อะไรที่มันใช้บ่อย ๆ ก็น่าจะเอามาทำเป็น framework เน้อะ</p>
<p>โอ้ เป็นไวยากรณ์ที่ผมไม่เคยเห็นมาก่อนเลยครับคุณ punneng</p>
<p>ผมเห็นครั้งแรกสะดุ้งโคตรครับคุณ penguin เห็นสมัยตอนภาษา pearl โน่นแน่ะ น๊านนานมาแล้ว</p>
<p>ผมเห็นนักพัฒนาที่ microsoft เขาก็พยายามจะทำเป็นแบบที่คุณ AMp ว่า แล้วยัดเอาไว้ใน .NET Framework นะั แต่ไม่รู้ว่าตอนนี้ไปถึงไหนแล้ว</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: AMp		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4386</link>

		<dc:creator><![CDATA[AMp]]></dc:creator>
		<pubDate>Sun, 27 Jul 2008 16:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4386</guid>

					<description><![CDATA[ถ้ามองในมุม crawler ผมว่าใช้ DOM ไปเลย แจ่มกว่าครับ

ส่วนเรื่อง regex framework คงจะสร้างมาเพื่อแทน raw regex ไม่ได้น่ะครับ น่าจะออกมาเป็นในรูปแบบของ helper มากกว่า (อาจจะใช้พวก method chaining เข้ามาช่วยเพิ่มความหะรูหะราได้ แถมอ่านง่ายขึ้นด้วย)

$regex-&#062;StringBetween(&quot;&lt;a&gt;&quot;, &quot;&lt;/a&gt;&quot;)-&#062;AnyPosition()-&#062;OnlyFirstMatch();

$regex-&#062;StringBetween(&quot;&lt;a&gt;&quot;, &quot;&lt;/a&gt;&quot;)-&#062;AtLineStart()-&#062;MatchAllLine();]]></description>
			<content:encoded><![CDATA[<p>ถ้ามองในมุม crawler ผมว่าใช้ DOM ไปเลย แจ่มกว่าครับ</p>
<p>ส่วนเรื่อง regex framework คงจะสร้างมาเพื่อแทน raw regex ไม่ได้น่ะครับ น่าจะออกมาเป็นในรูปแบบของ helper มากกว่า (อาจจะใช้พวก method chaining เข้ามาช่วยเพิ่มความหะรูหะราได้ แถมอ่านง่ายขึ้นด้วย)</p>
<p>$regex-&gt;StringBetween(&#8220;<a>&#8220;, &#8220;</a>&#8220;)-&gt;AnyPosition()-&gt;OnlyFirstMatch();</p>
<p>$regex-&gt;StringBetween(&#8220;<a>&#8220;, &#8220;</a>&#8220;)-&gt;AtLineStart()-&gt;MatchAllLine();</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: penguin		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4385</link>

		<dc:creator><![CDATA[penguin]]></dc:creator>
		<pubDate>Sun, 27 Jul 2008 15:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4385</guid>

					<description><![CDATA[ช่่วยได้เยอะนะผมว่า RegEx ไรเนี่ย เคยคิดจะเอามาใช้จริงจัง แต่เห็นไวยากรณ์แล้วสะดุ้ง - -&quot;]]></description>
			<content:encoded><![CDATA[<p>ช่่วยได้เยอะนะผมว่า RegEx ไรเนี่ย เคยคิดจะเอามาใช้จริงจัง แต่เห็นไวยากรณ์แล้วสะดุ้ง &#8211; -&#8220;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: PunNeng		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4384</link>

		<dc:creator><![CDATA[PunNeng]]></dc:creator>
		<pubDate>Sun, 27 Jul 2008 06:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4384</guid>

					<description><![CDATA[แก้ไข code ข้างบนครับ มันดัน render เป็น html code จริงๆ 

require &amp;apos;hpricot&amp;apos;
doc = Hpricot.parse &#034;&#060;a&#062;apple&#060;/a&#062;&#034;)
puts (doc/&#034;a&#034;).innerHTML #=&#062; &#034;apple&#034;


&#034;img#logo&#034; #&#060;img src=&#034;image.jpg&#034; id=&#034;logo&#034; /&#062;
&#034;img.thumb&#034; #&#060;img src=&#034;image.jpg&#034; class=&#034;thumb&#034; /&#062;]]></description>
			<content:encoded><![CDATA[<p>แก้ไข code ข้างบนครับ มันดัน render เป็น html code จริงๆ </p>
<p>require &apos;hpricot&apos;<br />
doc = Hpricot.parse &quot;&lt;a&gt;apple&lt;/a&gt;&quot;)<br />
puts (doc/&quot;a&quot;).innerHTML #=&gt; &quot;apple&quot;</p>
<p>&quot;img#logo&quot; #&lt;img src=&quot;image.jpg&quot; id=&quot;logo&quot; /&gt;<br />
&quot;img.thumb&quot; #&lt;img src=&quot;image.jpg&quot; class=&quot;thumb&quot; /&gt;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: PunNeng		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4383</link>

		<dc:creator><![CDATA[PunNeng]]></dc:creator>
		<pubDate>Sun, 27 Jul 2008 06:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4383</guid>

					<description><![CDATA[Hpricot - http://code.whytheluckystiff.net/hpricot/
ตัวอย่างด้วยภาษา Ruby

require &#039;hpricot&#039;
doc = Hpricot.parse(&quot;&lt;a&gt;apple&lt;/a&gt;&quot;)
puts (doc/&quot;a&quot;).innerHTML #=&#062; &quot;apple&quot;

หรือจะส่งเป็น url ไปเลยก็ได้ครับ มันจะ parse ออกมาแล้วใช้ selection อย่าง

&quot;img#logo&quot; #
&quot;img.thumb&quot; #

ถ้ามีหลายๆ ก้อน มันจะส่งกลับมาเป็น array ครับ

อาจจะไม่ตรงกับ regexp framework แต่ดูจากลักษณะการทำงานแล้วใกล้เคียงกับที่พี่ไท้ต้องการครับ]]></description>
			<content:encoded><![CDATA[<p>Hpricot &#8211; <a href="http://code.whytheluckystiff.net/hpricot/" rel="nofollow ugc">http://code.whytheluckystiff.net/hpricot/</a><br />
ตัวอย่างด้วยภาษา Ruby</p>
<p>require &#8216;hpricot&#8217;<br />
doc = Hpricot.parse(&#8220;<a>apple</a>&#8220;)<br />
puts (doc/&#8221;a&#8221;).innerHTML #=&gt; &#8220;apple&#8221;</p>
<p>หรือจะส่งเป็น url ไปเลยก็ได้ครับ มันจะ parse ออกมาแล้วใช้ selection อย่าง</p>
<p>&#8220;img#logo&#8221; #<br />
&#8220;img.thumb&#8221; #</p>
<p>ถ้ามีหลายๆ ก้อน มันจะส่งกลับมาเป็น array ครับ</p>
<p>อาจจะไม่ตรงกับ regexp framework แต่ดูจากลักษณะการทำงานแล้วใกล้เคียงกับที่พี่ไท้ต้องการครับ</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: rux		</title>
		<link>https://www.parinya.net/node/906/comment-page-1#comment-4382</link>

		<dc:creator><![CDATA[rux]]></dc:creator>
		<pubDate>Sat, 26 Jul 2008 19:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/906#comment-4382</guid>

					<description><![CDATA[ที่ยังไม่มีออกเป็น framework หรือ library ให้เราเรียกใช้ได้ง่ายๆ ก็คงเพราะคนที่ใช้ regular จริงๆ จังๆ ส่วนใหญ่เก่ง   และใช้ในเรื่องที่มันเฉพาะ  ไม่ได้เป็นกรณีทั่วๆ ไป

แต่อย่างที่พี่ไท้ยกตัวอย่างการ extract คำจาก html tag a ผมก็เห็นว่ามีประโยชน์นะครับ  ถ้ามีพวก html extractor ออกมาก็น่าจะดี  เพราะน่าจะเป็นกรณีการใช้ regular expression ที่มีคนใช้มากสุด

อ้อ...ผมก็เคยไปหา download library ในการ extract แต่ละชิ้นจาก html tag a นะครับ  เป็นภาษา php ซึ่งก็ง่ายดี  อย่าง PEAR ของ php นี่ผมว่าน่าจะมีคนทำ package Regx (Regular Expression) บ้างนะครับ  แต่ละคนที่ใช้แต่ละเรื่องจะได้เอามารวบรวมไว้ที่นี่เป็นศูนย์กลาง (ตรงตาม cencept ของ PEAR เด๊ะ)]]></description>
			<content:encoded><![CDATA[<p>ที่ยังไม่มีออกเป็น framework หรือ library ให้เราเรียกใช้ได้ง่ายๆ ก็คงเพราะคนที่ใช้ regular จริงๆ จังๆ ส่วนใหญ่เก่ง   และใช้ในเรื่องที่มันเฉพาะ  ไม่ได้เป็นกรณีทั่วๆ ไป</p>
<p>แต่อย่างที่พี่ไท้ยกตัวอย่างการ extract คำจาก html tag a ผมก็เห็นว่ามีประโยชน์นะครับ  ถ้ามีพวก html extractor ออกมาก็น่าจะดี  เพราะน่าจะเป็นกรณีการใช้ regular expression ที่มีคนใช้มากสุด</p>
<p>อ้อ&#8230;ผมก็เคยไปหา download library ในการ extract แต่ละชิ้นจาก html tag a นะครับ  เป็นภาษา php ซึ่งก็ง่ายดี  อย่าง PEAR ของ php นี่ผมว่าน่าจะมีคนทำ package Regx (Regular Expression) บ้างนะครับ  แต่ละคนที่ใช้แต่ละเรื่องจะได้เอามารวบรวมไว้ที่นี่เป็นศูนย์กลาง (ตรงตาม cencept ของ PEAR เด๊ะ)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
