2004 IR Help Posted August 23, 2006 Share Posted August 23, 2006 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) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now