<?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: Problem in using find command - Need Pointers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413983#M1645971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishnu,&lt;/P&gt;&lt;P&gt;Thanks to you and Regex:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2012 16:03:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-04T16:03:28Z</dc:date>
    <item>
      <title>Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413973#M1645961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts &lt;/P&gt;&lt;P&gt;I am using FIND Command to search for a string in fields of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search string : media rent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use find all occurences of search string in 'media rent buy'&lt;/P&gt;&lt;P&gt;it gives me correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;When i use find all occurences of search string in 'media is fine rent'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives sy-subrc 4 what i mean is words media and rent are in the phrase 'media is fine rent'&lt;/P&gt;&lt;P&gt;but i doesnt find that.&lt;/P&gt;&lt;P&gt;Any pointers to it ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below code &lt;/P&gt;&lt;P&gt;    CONCATENATE '(^|[[:blank:][:cntrl:][:punct:]]|$)'&lt;/P&gt;&lt;P&gt;                 I_SEARCH_STRING&lt;/P&gt;&lt;P&gt;                '(^|[[:blank:][:cntrl:][:punct:]]|$)'&lt;/P&gt;&lt;P&gt;                INTO I_SEARCH_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413973#M1645961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-03T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413974#M1645962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below regex 'media.*rent' will match media followed by rent with zero or more characters in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ls_string TYPE string VALUE 'media is fine rent'.
FIND FIRST OCCURRENCE OF REGEX 'media.*rent' IN ls_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413974#M1645962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-03T19:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413975#M1645963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text can be of any number of words.&lt;/P&gt;&lt;P&gt;when it is 3 words for search how should be my regex be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413975#M1645963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-03T19:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413976#M1645964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 3 words, it will be like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'word1.*word2.*word3'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remember that the above regex can also match a string like 'word1xyword2abword3', without any blank space before or after each word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want only exact words to match (a word is defined as a sequence of non blank space characters bounded by blank space on either side), then you should use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'\bword1\b.*\bword2\b.*\bword3\b'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or going by your original problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'\bmedia\b.*\brent\b'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\b means start or end of a word&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413976#M1645964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-03T19:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413977#M1645965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey vishnu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the info..can you please explain detail about this regex command i have read it many places but did not get it completely..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413977#M1645965</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-03T19:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413978#M1645966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nabheet, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regular expressions is a comprehensive topic and needs separate study and practice and can't be explained in a single post. It provides a powerful and intelligent way of pattern matching and is highly descriptive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can explain the simple regular expressions we used here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dot ( . ) - means any single character&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.* matches a string of 0 or more characters (* always applies to the character before it), so .* matches with null string or a string of any length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'word1.*word2.*word3'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matches word1 followed by word2 followed by word3 with 0 or any number of characters in between the words. By putting \b on either side of the words we can the restrict the match to only words which have blanks on either side (except beginning or end of string) like 'word1 word2 word3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, .+ matches a string of 1 or more characters, so .+ match with a single character or a string of any length but not null string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are much more powerful expressions using other meta-characters. Someday I will create a wiki of frequently used regular expressions in ABAP, with explanations and will let everyone on the forums know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 20:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413978#M1645966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-03T20:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413979#M1645967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To Search for a string in a internal table the format 'word1.&lt;STRONG&gt;word2.&lt;/STRONG&gt;word3' works fine with FIND STATEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in a situation where the order of the search string doesnt match with data we are searching for it wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search string: 'media.&lt;STRONG&gt;rent.&lt;/STRONG&gt;fine'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i search the above regex in a string like 'media rent is fine' it will search for the words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But When i search the above regex in a string like 'fine rent media dvd'  it will search give a sy-subrc 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Experts please suggest how can we search in a string ignoring   the order in which they are.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 14:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413979#M1645967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413980#M1645968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Split your input string into and internal table of individual words. Get you search words in a table of individual words. Loop through the latter, and see if the words exist in the former.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This really is VERY basic programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jan 4, 2012 4:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 15:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413980#M1645968</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-01-04T15:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413981#M1645969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply matt.&lt;/P&gt;&lt;P&gt;I was thinking to use a regular expression and find the expression in one go rather then searching for each word in a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 15:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413981#M1645969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413982#M1645970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regex offers elegant solution for that too. We use the pipe symbol '|' as an OR operator in regular expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIND ALL OCCURRENCES OF REGEX 'media|rent|fine' IN ls_string&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above command matches with both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_string = 'fine rent media dvd'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_string = 'media rent is fine'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can solve a problem that regex can solve anyway by using a elaborate programming logic that adds to maintenance overhead. But what is the point when regex offers a simple solution spanning not more than few lines of code. Problem may be trivial but solution should be intelligent &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 15:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413982#M1645970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T15:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413983#M1645971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishnu,&lt;/P&gt;&lt;P&gt;Thanks to you and Regex:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 16:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413983#M1645971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T16:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413984#M1645972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please assign points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 16:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413984#M1645972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413985#M1645973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the info...this is something new:):)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its interesting..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 17:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413985#M1645973</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-04T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413986#M1645974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishnu,&lt;/P&gt;&lt;P&gt;FIND ALL OCCURRENCES OF REGEX 'media|rent|fine' IN ls_string works fine but it also search for words related to it.&lt;/P&gt;&lt;P&gt;For example it also give results for 'rented' 'fines'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using &lt;/P&gt;&lt;P&gt;'(^|[[:blank:][:cntrl:][:punct:]])media|rent|fine([[:blank:][:cntrl:][:punct:]]|$)' but this doesnt work.&lt;/P&gt;&lt;P&gt;Any pointers on this?&lt;/P&gt;&lt;P&gt;Thanks for all your help.&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 18:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413986#M1645974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413987#M1645975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIND ALL OCCURRENCES OF REGEX '\bmedia\b|\brent\b|\bfine\b' IN ls_string RESULTS result_tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 18:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413987#M1645975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-04T18:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413988#M1645976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Matt,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; We can solve a problem that regex can solve anyway by using a elaborate programming logic that adds to maintenance overhead. But what is the point when regex offers a simple solution spanning not more than few lines of code. Problem may be trivial but solution should be intelligent &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's fair enough, and in this case with the simple regex offered, it's definitely the best solution - I should have seen it myself. (blush). However, I've seen complex regex used and that's where the problems lie. Sometimes it's better to write a simple program, than to use a complex (single) regex - prceisely because of maintenance overhead!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I was also watching this thread in case it turned into a basic programming issue, but it didn't )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 07:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413988#M1645976</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-01-05T07:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using find command - Need Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413989#M1645977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; That's fair enough, and in this case with the simple regex offered, it's definitely the best solution - I should have seen it myself. (blush). However, I've seen complex regex used and that's where the problems lie. Sometimes it's better to write a simple program, than to use a complex (single) regex - prceisely because of maintenance overhead!&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; (I was also watching this thread in case it turned into a basic programming issue, but it didn't )&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; matt&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt, I understand what you are saying and you bring up an interesting point. Regexes are not very popular, that is precisely because many of the common everyday pattern matching problems that regexes can solve elegantly can also be solved by programming. It is like trying to learn a foreign language when everyone around speaks your mother tongue &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there are many situations where regexes can save us several pages of complex coding as can be seen [here|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="2103266"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good commenting practice can help here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As more and more ABAP developers come across regexes they may not remain esoteric for a long time. Regular expressions are quite old, it is sad that SAP introduced them quite late.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate you and other moderators, taking moderation very seriously and spending some of your time in keeping the forum highly professional. This is quite unlike many professional boards that I came across.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 09:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-find-command-need-pointers/m-p/8413989#M1645977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-05T09:31:50Z</dc:date>
    </item>
  </channel>
</rss>

