Re: To determine whether a string is a substring of another string



<saturnlee@xxxxxxxxx> wrote in message
news:1164579595.889792.180320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is there anyway to determine whether a string is a substring of another
string.
For example: be is the substring of beatiful, er is the substring
germany, ny is the substring germany.


Yes easily

See this page

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html


.



Relevant Pages

  • To determine whether a string is a substring of another string
    ... Is there anyway to determine whether a string is a substring of another ... be is the substring of beatiful, ... germany, ...
    (comp.lang.java.help)
  • Re: [QUIZ] Longest Repeated Substring (#153)
    ... My hack at the substring problem is based on suffix ... in the original string. ... def initialize ...
    (comp.lang.ruby)
  • Favicon type detection - possible?
    ... this is my cobbled together browser detection ... {string: navigator.userAgent, ... subString: "OmniWeb", ... {// for newer Netscapes ...
    (comp.lang.javascript)
  • Comments on Comments (was Re: Getting to 100 (#119))
    ... # yield each partitioning of the receiver into count partitions ... # an initial substring of increasing length, ... # the string into count-1 partitions. ... #:ops - an array of strings representing the operators to be inserted into ...
    (comp.lang.ruby)
  • Re: Computability and logic
    ... as regards a mathematical formulation of a substring ... substring in a string with another substring? ... result of substituting a term for a variable in a formula'. ... As I recall, he doesn't get into replacing term for term, ...
    (sci.logic)