java - Finding a string within a string -


I can show you how to do it? Substring? Split? ...

But it's probably dynamic!

  string str = "SET ENCALSUP = NOENCR and GSMV2, MAXNCELL = 16, TDTMWIND = 5, MAXLAPDMN = 5, EENHDTMSUP = disabled, T3197 = 4, PAGCOORCLB = disabled, DGRSTRGYBCNT = disabled, PAGQOVLIND = 0; ";  

This output (EENHDTMSUP = unusable):

just

  Disable  

Thank you ...

Your question is not very clear need to know what you value "EENHDMSUP" is?

If so, something like:

  int start = myString.indexOf ( "EENHDTMSUP ="); String substr = myString.subString (start, myString.indexOf (',', start); System.out.println (substr);  

will probably work.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -