+ Start a Discussion
Naresh Krishna.ax1176Naresh Krishna.ax1176 

How to replace a specified string with empty string in visualforce page ?

Hi All,

 

I can able replace a string with empty string in controller with String.replace().

 

Is there any way to replace a specified string with empty string directly in visualforce page ?

 

Ex:-

String sample = 'Sample_Program';

 

I need to display the sample variable as 'Program' only.

 

Please help me with the above to do the logic in the visualforce page.

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
Naresh Krishna.ax1176Naresh Krishna.ax1176

Got the solution :)

 

Using SUBSTITUTE method we can do it.