Link to home
Start Free TrialLog in
Avatar of sidwelle
sidwelleFlag for United States of America

asked on

Rhino javascript replace special characters

Have script running and trying to replace some special Characters, but dosent seem to work or I don't have the right codes...

//Remove Vertical Tabs  x0B
text = text.replace(/\v/g, "");     //I think this is working.

//Remove File Separators, don't think either of the following are working.  x1C
text = text.replace(/\f/g, "");
text = text.replace(/\x1C/g, "");
SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sidwelle

ASKER

Thanks Julian for keeping it simple.  

Works.
You are welcome