advanced replace?

Results 1 to 3 of 3

Thread: advanced replace?

  1. #1
    Join Date
    Dec 1969

    Default advanced replace?

    hello,<BR><BR>Is there a replace option available that will change a string independed from the case to something else without losing the case of the rest of the string?<BR><BR>like<BR><BR>replace("Do Artemia replacement","artemia","&#060;i&#062;Artemia&#060;/i&#062;"<BR><BR>will do the trick but it doesn&#039;t, lcase(string) is an option but that will make it "do Atemia..." problem is that it isn&#039;t sure that artemia appears all the time with a capital letter or full capital.<BR><BR>is there a way to solve this?<BR>(i guess a combination of instr, mid, start+string+end or replace ?)<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default You will have to code it

    first find the string, get the mid then get the ascii value to determine if it us upper or lower case and after that "create" the text to replace with and replace<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default Regular Exp

    could be the answer.<BR><BR>I&#039;d post code but I&#039;m really busy right now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts