<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[String function in NXSL]]></title><description><![CDATA[<p dir="auto">Hi, is that any function in NXSL like index() and rindex()?  I need to know the location before I use substr().</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.netxms.org/topic/966/string-function-in-nxsl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:11:53 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/966.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Aug 2010 03:43:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String function in NXSL on Fri, 13 Aug 2010 04:18:10 GMT]]></title><description><![CDATA[<p dir="auto"> <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /> It works~!</p>
<p dir="auto">I noticed that the 1.05 User Manual is out, hope to see the new version soon~</p>
]]></description><link>https://forum.netxms.org/post/4400</link><guid isPermaLink="true">https://forum.netxms.org/post/4400</guid><dc:creator><![CDATA[colaboy]]></dc:creator><pubDate>Fri, 13 Aug 2010 04:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to String function in NXSL on Thu, 12 Aug 2010 18:06:06 GMT]]></title><description><![CDATA[<p dir="auto">Here it is. Just replace existing libnxsl.dll with attached one.</p>
<p dir="auto">Short description of new functions:</p>
<p dir="auto">index(string, substring, [position])<br />
Returns the position of the first occurrence of SUBSTRING in STRING at or after POSITION.<br />
If you don't specify POSITION, the search starts at the beginning of STRING. If SUBSTRING<br />
is not found, returns 0.</p>
<p dir="auto">rindex(string, substring, [position])<br />
Returns the position of the last occurrence of SUBSTRING in STRING at or before POSITION.<br />
If you don't specify POSITION, the search starts at the end of STRING. If SUBSTRING<br />
is not found, returns 0.</p>
<p dir="auto">All indexes are 1-based (first character has index 1), as in substr.</p>
<p dir="auto">Best regards,<br />
Victor</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000380-libnxsl.dll">libnxsl.dll</a></p>
]]></description><link>https://forum.netxms.org/post/4399</link><guid isPermaLink="true">https://forum.netxms.org/post/4399</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 12 Aug 2010 18:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to String function in NXSL on Thu, 12 Aug 2010 09:55:20 GMT]]></title><description><![CDATA[<p dir="auto"> <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /> Great~ I am using windows version, really appreciate if you can rebuild it.</p>
]]></description><link>https://forum.netxms.org/post/4398</link><guid isPermaLink="true">https://forum.netxms.org/post/4398</guid><dc:creator><![CDATA[colaboy]]></dc:creator><pubDate>Thu, 12 Aug 2010 09:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to String function in NXSL on Thu, 12 Aug 2010 07:45:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">There are no such functions in current version. I have implemented index and rindex for next version. If you need them urgently, I can publish source code patch or rebuilt NXSL engine for Windows.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4394</link><guid isPermaLink="true">https://forum.netxms.org/post/4394</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 12 Aug 2010 07:45:56 GMT</pubDate></item></channel></rss>