|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Extract regex-type substring from string
I have a glob of XML data in a String object that includes a bunch of newlines. I need to find the substring
Quote:
given the string "Triage" and extract the id from it. I have looked at the String documentation here but I can't find anything that matches what I need to do. The string I'll be given will almost always exist in more than one place in the XML, so I can't just do an indexOf and back up a certain number of chars. Any ideas?
__________________
|
|
#2
|
||||
|
||||
|
I found the solution in the regex classes.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Extract regex-type substring from string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|