<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to get a part of a string</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34084/how-to-get-a-part-of-a-string</link><description>Hello, 
 I have a string data and I want to get a part of it which start for example with &amp;quot;hello&amp;quot; and I want to get 20 characters after &amp;quot;hello&amp;quot;. 
 (for more details I&amp;#39;m using nrf51DK and a gps module,I recieve all data from gps but I want to get the data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 May 2018 15:01:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34084/how-to-get-a-part-of-a-string" /><item><title>RE: How to get a part of a string</title><link>https://devzone.nordicsemi.com/thread/131245?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 15:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24755bb4-886c-4c6c-af00-51b0600b28cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure what the typical packet format is, but you will probably need to implement a parser that can decode packet sent from the GPS module. One approach could be to use&amp;nbsp;&lt;a href="https://www.techonthenet.com/c_language/standard_library_functions/string_h/strcmp.php"&gt;strcmp&lt;/a&gt;() to check if the string contains the &amp;quot;$GPGLL&amp;quot; keyword, then extract&amp;nbsp;following 20 bytes from the input buffer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>