Text replacement in Expressions

By: Nexus6 - n3xus6
Text replacement in Expressions
2005-09-19 17:18
I have a textFieldExpression that I'd like to replace a part of the string.

For instance say I have "JEA/jeremy" (ADS accounts) I would like to remove the "JEA/" path and be left "jeremy". Any ideas? And yes I am a noob.




By: mlaw93 - mlawson93
RE: Text replacement in Expressions
2005-09-20 14:20
You can use any String.substring() or Regex java code you want inside the textFieldExpression....
after all your field has been declared to be java.lang.String right?

You can also import any utility classes you want to and use them to make the appropriate transformation.

Hope this helps.




By: mlaw93 - mlawson93
RE: Text replacement in Expressions
2005-09-20 14:24
Here is more help, hopefully.

For example you could put this in your expression....

"JEA/jeremy".substring(4)


or

$F{myField}.substring(4)
2004 IR Help's picture
Joined: Aug 17 2006 - 3:49am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness