<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Trying to work out how to find certain IPv4 addresses in the middle of a string]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Trying to work out how to find certain IPv4 addresses in the middle of a string of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Fri, 10 Jul 2020 08:45:03 +0300</lastBuildDateTag>		<item>
			<title>Trying to work out how to find certain IPv4 addresses in the middle of a string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14552/message50110/">Trying to work out how to find certain IPv4 addresses in the middle of a string</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			You are on the right track. You need to reverse the order of the last part of your expression:<br /><br />(&#91;0-9&#93;|&#91;1-8&#93;&#91;0-9&#93;|9&#91;0-9&#93;|1&#91;0-9&#93;{2}|2&#91;0-4&#93;&#91;0-9&#93;|25&#91;0-5&#93;)<br /><br />Like this: (25&#91;0-5&#93;|2&#91;0-4&#93;&#91;0-9&#93;|1&#91;0-9&#93;{2}|&#91;1-9&#93;&#91;0-9&#93;|&#91;0-9&#93;)<br /><br />This is because the regex engine will return a match as soon as it finds one. So we need to put the most specific cases first and the most general cases last. <br />
			<i>10 July 2020 08:45:03, <a href="http://www.ritlabs.com/en/forums/">Kelly Birney</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14552/message50110/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14552/message50110/</guid>
			<pubDate>Fri, 10 Jul 2020 08:45:03 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Trying to work out how to find certain IPv4 addresses in the middle of a string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14552/message49710/">Trying to work out how to find certain IPv4 addresses in the middle of a string</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I modified the code from Daniel&#39;s link. This seems to solve the first case you are looking for:<br /><br />(192.168.0.\d{1,3})<br />Test it though to make sure. <br />
			<i>02 May 2020 12:41:26, <a href="http://www.ritlabs.com/en/forums/">Ulrich Leininger</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14552/message49710/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14552/message49710/</guid>
			<pubDate>Sat, 02 May 2020 12:41:26 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Trying to work out how to find certain IPv4 addresses in the middle of a string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14552/message48641/">Trying to work out how to find certain IPv4 addresses in the middle of a string</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Regular expressions are not specific to The Bat, so don't despair if you don't find (get) the answer here. They are used in countless applications and programming and scripting languages, so, there are many other places on the internet where you may still find an answer.<br /><br />A generic ipv4 finding expression is shown and explained here: <noindex><a href="https://regex101.com/r/dA7sJ5/3" target="_blank" rel="nofollow">https://regex101.com/r/dA7sJ5/3</a></noindex><br /><br />Even if it's not precisely what you're asking for (it doesn't filter for those specific ranges), I thought the site and its RegEx debugger might still be helpful. <br />
			<i>13 December 2019 20:22:37, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14552/message48641/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14552/message48641/</guid>
			<pubDate>Fri, 13 Dec 2019 20:22:37 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Trying to work out how to find certain IPv4 addresses in the middle of a string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14552/message48630/">Trying to work out how to find certain IPv4 addresses in the middle of a string</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			<p>I am trying to create two separate regex expressions, the first is trying to find ipv4 addresses in &nbsp;the 192.168.0.x range in the middle of a large string, which also contains large amounts of white-spaces and other numerals.<br />[P]The second expression is underneath the same conditions, but the address is in the 10.x.x range :</p><p>Sample valid addresses: 192.168.0.0 / 192.168.0.255 and 10.0.0.0 / 10.0.255.255</p><p>I have very little experience with regex: my attempt at solving the first problem was (192\.168\.0\.)+(&#91;0-9&#93;|&#91;1-8&#93;&#91;0-9&#93;|9&#91;0-9&#93;|1&#91;0-9&#93;{2}|2&#91;0-4&#93;&#91;0-9&#93;|25&#91;0-5&#93;)</p>[P]I believe that this is on the wrong track, and want to see how it&#39;s properly done, or at least some tips on finding a solution. I am using a java environment to parse the strings <br />
			<i>13 December 2019 12:47:01, <a href="http://www.ritlabs.com/en/forums/">William Lucas</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14552/message48630/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14552/message48630/</guid>
			<pubDate>Fri, 13 Dec 2019 12:47:01 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
	</channel>
</rss>
