<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251808#M75276</link>
    <description>&lt;P&gt;Did you manage to get this to work at all?&lt;/P&gt;

&lt;P&gt;I'm playing around with something similar and I can almost get regex to work with something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="hrtearliest"&amp;gt;
    &amp;lt;label&amp;gt;Human Readable Time Start&amp;lt;/label&amp;gt;
    &amp;lt;change&amp;gt;
        &amp;lt;eval token="test"&amp;gt;if(match($value$, &amp;amp;quot;(.+)&amp;amp;quot;), &amp;amp;quot;match&amp;amp;quot;, &amp;amp;quot;not match&amp;amp;quot;&amp;lt;/eval&amp;gt;
    &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But if I try to expand the regex in the match it stops setting the test token at all. For example - with the text box set to 2016.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="hrtearliest"&amp;gt;
    &amp;lt;label&amp;gt;Human Readable Time Start&amp;lt;/label&amp;gt;
    &amp;lt;change&amp;gt;
        &amp;lt;eval token="test"&amp;gt;if(match($value$, &amp;amp;quot;(\d+)&amp;amp;quot;), &amp;amp;quot;match&amp;amp;quot;, &amp;amp;quot;not match&amp;amp;quot;&amp;lt;/eval&amp;gt;
    &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it seems from my testing that the regex doesn't work with meta characters (\d, \w etc) but does work with control characters ({3}, + * etc). I also tried using the escape string for the \ on the meta characters but that didn't help.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2016 14:17:55 GMT</pubDate>
    <dc:creator>peter_holmes_an</dc:creator>
    <dc:date>2016-09-14T14:17:55Z</dc:date>
    <item>
      <title>Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251798#M75266</link>
      <description>&lt;P&gt;I am trying to test a text input box value to determine if an IP address was provided. If an IP address was provided, I want to set the token "test-result" to Is_an_IP. If an IP address is not provided I want to set the token "test-result" to Is_NOT_an_IP.&lt;/P&gt;

&lt;P&gt;I have tried the test using simple string tests and the dashboard works without issue. When I try to do the regex/IP test, it does not work.&lt;/P&gt;

&lt;P&gt;I do not have enough karma to post links to the documentation.&lt;/P&gt;

&lt;P&gt;Below is my Simple XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Test_IP&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="text" token="field100"&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="match(value, "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}")"&amp;gt;
          &amp;lt;set token="test-result"&amp;gt;Is_an_IP&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="test-result"&amp;gt;Is_NOT_an_IP&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Test-Result=$test-result$ field=$field100$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=**&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251798#M75266</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2020-09-29T07:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251799#M75267</link>
      <description>&lt;P&gt;just noticed the posting process interpreted my double quote ascii value. I'm trying to break the interpretation by inserting spaces ...condition match="match(value, &amp;amp; quot ;d{1,3}.d{1,3}.d{1,3}.d{1,3}&amp;amp; quot ;)"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 16:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251799#M75267</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2015-10-01T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251800#M75268</link>
      <description>&lt;P&gt;If you indent each line of your XML 4 spaces, the editor will preserve special characters.  I made the change for you.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251800#M75268</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-01T17:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251801#M75269</link>
      <description>&lt;P&gt;Have you tried escaping the quotes inside your &lt;CODE&gt;match&lt;/CODE&gt; command?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251801#M75269</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-01T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251802#M75270</link>
      <description>&lt;P&gt;Thanks for the edit!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251802#M75270</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2015-10-01T18:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251803#M75271</link>
      <description>&lt;P&gt;I'm using the ascii text for quotes in my xml. The posting process interpreted them and is displaying the quotes. I introduced spaces in to the ascii text and they do not get interpreted ... match="match(value, &amp;amp; quot ;d{1,3}.d{1,3}.d{1,3}.d{1,3}&amp;amp; quot ;)"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251803#M75271</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2015-10-01T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251804#M75272</link>
      <description>&lt;P&gt;Hi @mydog8it (just got the cleverness of your username after typing it out ;P)&lt;/P&gt;

&lt;P&gt;Just so you know, you're welcome to post the URL to docs you're referring to, even without enough karma. They won't render as links, but at least people can see exactly what page(s) you're referring to or copy and paste it themselves. &lt;/P&gt;

&lt;P&gt;Cheers!&lt;BR /&gt;
Patrick &lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251804#M75272</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-10-01T18:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251805#M75273</link>
      <description>&lt;P&gt;Thanks Patrick!&lt;BR /&gt;
Here is the path to Evaluation Functions documentation:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;BR /&gt;
do a find for "match(SUBJECT, "REGEX")"&lt;/P&gt;

&lt;P&gt;Here is the path to the v6.3 Simple XML reference docs:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML&lt;/A&gt;&lt;BR /&gt;
do a find for "match"&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251805#M75273</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2015-10-01T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251806#M75274</link>
      <description>&lt;P&gt;I'm suggesting you should try &lt;CODE&gt;match(value, \"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\")&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 12:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251806#M75274</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-02T12:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251807#M75275</link>
      <description>&lt;P&gt;The dashboard tool will not save with that syntax.&lt;BR /&gt;
"Encountered the following error while trying to update: In handler 'views': Error parsing XML on line 15: Extra content at the end of the document "&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 22:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251807#M75275</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2015-10-02T22:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251808#M75276</link>
      <description>&lt;P&gt;Did you manage to get this to work at all?&lt;/P&gt;

&lt;P&gt;I'm playing around with something similar and I can almost get regex to work with something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="hrtearliest"&amp;gt;
    &amp;lt;label&amp;gt;Human Readable Time Start&amp;lt;/label&amp;gt;
    &amp;lt;change&amp;gt;
        &amp;lt;eval token="test"&amp;gt;if(match($value$, &amp;amp;quot;(.+)&amp;amp;quot;), &amp;amp;quot;match&amp;amp;quot;, &amp;amp;quot;not match&amp;amp;quot;&amp;lt;/eval&amp;gt;
    &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But if I try to expand the regex in the match it stops setting the test token at all. For example - with the text box set to 2016.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="text" token="hrtearliest"&amp;gt;
    &amp;lt;label&amp;gt;Human Readable Time Start&amp;lt;/label&amp;gt;
    &amp;lt;change&amp;gt;
        &amp;lt;eval token="test"&amp;gt;if(match($value$, &amp;amp;quot;(\d+)&amp;amp;quot;), &amp;amp;quot;match&amp;amp;quot;, &amp;amp;quot;not match&amp;amp;quot;&amp;lt;/eval&amp;gt;
    &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it seems from my testing that the regex doesn't work with meta characters (\d, \w etc) but does work with control characters ({3}, + * etc). I also tried using the escape string for the \ on the meta characters but that didn't help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 14:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251808#M75276</guid>
      <dc:creator>peter_holmes_an</dc:creator>
      <dc:date>2016-09-14T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251809#M75277</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/122966"&gt;@peter_holmes_an&lt;/a&gt;aplan: you're responding to a year-old thread.  For better chances at getting an answer, I suggest you post a new question.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251809#M75277</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T11:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251810#M75278</link>
      <description>&lt;P&gt;@ richgalloway ♦: Thanks Rich, I actually worked out how to do this after posting the comment (you need to just avoid meta characters and use [0-9] for \d etc. I'm going to post this as a comment on the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/Viz/tokens"&gt;token usage documentation&lt;/A&gt; as it would have saved me a few hours :-).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 14:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251810#M75278</guid>
      <dc:creator>peter_holmes_an</dc:creator>
      <dc:date>2016-09-14T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251811#M75279</link>
      <description>&lt;P&gt;I strongly suggest that you use the XML CDATA construct to simplify these problems.&lt;BR /&gt;
Surrounding text with &lt;CODE&gt;&amp;lt;![CDATA[&lt;/CODE&gt;and &lt;CODE&gt;]]&amp;gt;&lt;/CODE&gt; means that you don't have to worry about XML munging your special characters. You don't need to use &lt;CODE&gt;&amp;amp;quot;&lt;/CODE&gt; and friends. (You do still need to worry about how &lt;EM&gt;Splunk&lt;/EM&gt; interprets the special characters...)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 00:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251811#M75279</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-09-16T00:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251812#M75280</link>
      <description>&lt;P&gt;I found out that the Javascript version of the &lt;CODE&gt;match()&lt;/CODE&gt; eval function apparently doesn't like something as simple as &lt;CODE&gt;\d+&lt;/CODE&gt;.  However, if I changed it to &lt;CODE&gt;[0-9]+&lt;/CODE&gt; then it worked.&lt;/P&gt;

&lt;P&gt;I'm not sure if the back-slash needs escaped, or if &lt;CODE&gt;\d&lt;/CODE&gt; specifically isn't supported or what.   But I was just trying to match any integer, so didn't take it any further.&lt;/P&gt;

&lt;P&gt;The docs do mention that the regular expression dialect is different.   JavaScript vs PCRE, but not that familiar with the differences there either.&lt;/P&gt;

&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 17:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251812#M75280</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2016-10-21T17:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251813#M75281</link>
      <description>&lt;P&gt;haha, just saw this also noted in a comment above.  Whoops.  Oh well, missed it the first time I read through it; maybe this will still be helpful to someone.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 17:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251813#M75281</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2016-10-21T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Splunk 6.3 Simple XML text input box: condition match regex IP address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251814#M75282</link>
      <description>&lt;P&gt;Kindly refer to Splunk documentation (&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens&lt;/A&gt;) for following two points:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Regular Expressions in dashboard eval&lt;BR /&gt;
expressions use the syntax and&lt;BR /&gt;
semantics of the &lt;STRONG&gt;JavaScript regular&lt;BR /&gt;
expression&lt;/STRONG&gt; engine. This is not the&lt;BR /&gt;
same engine used for SPL eval&lt;BR /&gt;
expressions.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;You can compute a token's value based&lt;BR /&gt;
on the result of an eval expression.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Based on the above, inside change block, instead of using condition please use the following eval condition block, which in-turn will perform match condition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;change&amp;gt;
       &amp;lt;eval token="test-result"&amp;gt;if(match(value, &amp;amp;quot;^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$&amp;amp;quot;), &amp;amp;quot;IS AN IP&amp;amp;quot;, &amp;amp;quot;IS NOT IP&amp;amp;quot;)&amp;lt;/eval&amp;gt;
   &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;PS: Regulat expression for IPv4 Address is way more elaborate than the one used here (i.e. upto three digit numbers separated by dots) Please refer to documentation on Javascript Regulat expression for IP Address as three digit numbers can not be greater than 255.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2016 22:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Splunk-6-3-Simple-XML-text-input-box-condition-match/m-p/251814#M75282</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-10-30T22:29:54Z</dc:date>
    </item>
  </channel>
</rss>

