<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ssis regex parser task Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/ssis-regex-parser-task/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/ssis-regex-parser-task/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Mon, 12 Mar 2018 14:42:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>ssis regex parser task Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/ssis-regex-parser-task/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Using SSIS Regex Parser Task for Extracting HTML Content</title>
		<link>https://zappysys.com/blog/using-ssis-regex-parser-task-extracting-html-content/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Mon, 26 Dec 2016 17:09:57 +0000</pubDate>
				<category><![CDATA[SSIS Regex Parser Task]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[ssis regex parser task]]></category>
		<category><![CDATA[ssis rest api task]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=919</guid>

					<description><![CDATA[<p>Introduction In this post you will learn how to use FREE SSIS Regex Parser Task along with REST API Task to extract HTML content in few clicks. Scenario Assume that you want to search certain keywords from Bing or google and want to know how many pages found for that keyword. Url for search would [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/using-ssis-regex-parser-task-extracting-html-content/">Using SSIS Regex Parser Task for Extracting HTML Content</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-regex-parser-task.png"><img decoding="async" class="size-full wp-image-2974 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-regex-parser-task.png" alt="" width="100" height="100" /></a>In this post you will learn how to use FREE <a href="//zappysys.com/products/ssis-powerpack/ssis-regex-parser-task/" target="_blank" rel="noopener">SSIS Regex Parser Task</a> along with <a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/" target="_blank" rel="noopener">REST API Task</a> to extract HTML content in few clicks.</p>
<p>Scenario</p>
<p>Assume that you want to search certain keywords from Bing or google and want to know how many pages found for that keyword. Url for search would be something like http://www.bing.com/search?q=regex where regex is our search word.</p>
<p>When page is returned view source code of that page and you will find tag like below.</p><pre class="crayon-plain-tag">&lt;span class="sb_count" data-bm="4"&gt;21,00,000 results&lt;/span&gt;</pre><p>
What we want is number 21,00,000 using Regular expression pattern search.</p>
<h2>Step-By-Step : Extract HTML Tag value using Regex Expression</h2>
<ol>
<li>Download and Install <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a> (It includes FREE <a href="//zappysys.com/products/ssis-powerpack/ssis-regex-parser-task/" target="_blank" rel="noopener">SSIS Regex Parser Task</a> )</li>
<li>Create new SSIS Package</li>
<li>Drag ZS REST API Task on Control flow designer from SSIS Toolbox</li>
<li>Double click to configure the task. Enter URL you like to fetch e.g. http://www.bing.com/search?q=regex</li>
<li>Click on Response Tab and check Save response option. Select Save to Variable. If needed create new variable.</li>
<li>Click Test (Scroll at the bottom to see html content)</li>
<li>Now drag ZS Regex Parser Task and connect with REST API Task</li>
<li>Select Variable which will hold HTML text you like to parse.</li>
<li>Enter following expression and map target to some Variable if you like to save extracted value. Below expression ends with {{0,1}} which means extract first match and 2nd group of that match (0 based Index). 2nd group of match will hold actual count of search result. If you omit {{x,y}} at the end then {{0,0}} is used.<br />
<pre class="crayon-plain-tag">\&lt;span\s*\w*\s*class="sb_count"\s*&gt;\s*(?&lt;p2&gt;[0-9,.]*){{0,1}}</pre>
See below screenshot</p>
<div id="attachment_920" style="width: 710px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-expression-extract-html-tag-value.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-920" class="wp-image-920" src="//zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-expression-extract-html-tag-value.png" alt="SSIS Regex Parser Task - Extract HTML Tag Value using Regular Expression" width="700" height="461" srcset="https://zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-expression-extract-html-tag-value.png 881w, https://zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-expression-extract-html-tag-value-300x198.png 300w" sizes="(max-width: 700px) 100vw, 700px" /></a><p id="caption-attachment-920" class="wp-caption-text">SSIS Regex Parser Task &#8211; Extract HTML Tag Value using Regular Expression</p></div></li>
<li>In the above step you can select Variable as Input or use placeholder in Direct string (e.g  {{Use::varHtml}} )</li>
<li> You can also connect ZS Logging task to show extracted value</li>
</ol>
<p>Here is final flow.</p>
<div id="attachment_921" style="width: 700px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-parse-example-download-page-extract-html-tag-value.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-921" class="size-full wp-image-921" src="//zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-parse-example-download-page-extract-html-tag-value.png" alt="SSIS Regular expression parsing example" width="690" height="406" srcset="https://zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-parse-example-download-page-extract-html-tag-value.png 690w, https://zappysys.com/blog/wp-content/uploads/2016/12/ssis-regex-parse-example-download-page-extract-html-tag-value-300x177.png 300w" sizes="(max-width: 690px) 100vw, 690px" /></a><p id="caption-attachment-921" class="wp-caption-text">SSIS Regular expression parsing example</p></div>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/using-ssis-regex-parser-task-extracting-html-content/">Using SSIS Regex Parser Task for Extracting HTML Content</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
