mclisa81 Posted November 5, 2008 Share Posted November 5, 2008 Hi, I know that I can change a color using a <color> tag, but I need a rule that will change a web address of unknown length, that will be added by the customer somewhere in their paragraph of copy. What I know is that the web address will always start with www. and end with .edu. And what is in-between is unknown. I need to change the occurence of the web address from black to PMS 187. Any help would be appreciated, thanks. Lisa McKillop Link to comment Share on other sites More sharing options...
Dan Korn Posted November 6, 2008 Share Posted November 6, 2008 Something like this: return NormalizeEntities(Field("MyField")).replace(/(www\..+\.edu)/gi, "<color name=\"PMS 187\">$1</color>"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.