Hi,
my requirement is like
Character after "-" should be Capital letter
Ex:
input:
hi this - is dsxchange forum.
output:
hi this - Is dsxchange forum.
Can anyone please suggest me how to accomplish this.
Thanks In advance.
Thanks
Character after "-" should be Capital letter
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 86
- Joined: Wed Mar 03, 2010 3:09 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Noting that you may need to modify the expression because of the space following the "-" character one solution is
You could (should) extract the common subexpression into a stage variable.
Code: Select all
If Index(InLink.TheString, "-", 1) > 0 Then Field(InLink.TheString, "-", 1, 1) : "-" : UpCase(Left(Field(InLink.TheString, "-", 2, 1))) : Right(Field(InLink.TheString,"-",2,1),Len(Field(InLink.TheString, "-", 2, 1) -1) Else InLink.TheString
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 86
- Joined: Wed Mar 03, 2010 3:09 am
ray.wurlod wrote:Noting that you may need to modify the expression because of the space following the "-" character one solution isCode: Select all
If Index(InLink.TheString, "-", 1) > 0 Then Field(InLi ...[/quote] Hi Ray, Thanks for your reply i am not premium user.If you dontmind can you please elaborate that.And one more thing i need to do capital letter after hiphen(-). Thanks in advace
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: