Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » return substring(how to return substring without identifying the index)
return substring [message #1751404] Mon, 09 January 2017 20:59 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 152
Registered: October 2014
Senior Member
Hi,
If i have a string like "uml#_ksyFcDrKEeWwIYjMw9yGdw" and i need to return part of it starting from # to the end .I can't identify the index of the "#" as it can be different for each string.I am wondering if there is an operation can return substring from a specific character to the end of the string.



Thanks,
Taghreed
Re: return substring [message #1751427 is a reply to message #1751404] Tue, 10 January 2017 09:27 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1498
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

Does "uml#_ksyFcDrKEeWwIYjMw9yGdw".split("#")[1] do the trick?

Cheers,
Dimitris
Re: return substring [message #1751472 is a reply to message #1751427] Tue, 10 January 2017 15:27 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 152
Registered: October 2014
Senior Member
Yes it does .

Thanks,
Taghreed
Previous Topic:Error when click on 'Generate GMF Editor'
Next Topic:Problems loading XSD in standalone transformation
Goto Forum:
  


Current Time: Wed Jan 17 05:43:31 GMT 2018

Powered by FUDForum. Page generated in 0.01935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software