Use Replace string with a * $text:=Replace string("A test ofUC";"uC";"--";*) ALERT($text) -> "A test ofUC"
Keith - CDI > On Jul 29, 2017, at 12:30 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I find myself needing to do a case-sensitive replace string. > > Searching for: ID > Replacing with _ibid > > The character pair "id" or "Id" or "iD" should be left alone. > > So > > PlaceID = Place_ibid > Placeid = Placeid > PlaceId = PlaceId > PlaceiD = PlaceiD > > Does anyone already have a routine to help out with this in 4D? Or, for > that matter, have I missed a command or option that's been added down the > years? > > Thanks! > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************