Skip to main content
Archived

Make the default of 'search' or 'replace' stringfunctions case insensitive inste

Related products:Transformers
  • siennaatsafe
    siennaatsafe
  • runneals
    runneals
  • garnet
  • geoal
    geoal

thijsknapen
Contributor

***Note from Migration:***

Original Title was: Make the default of 'search' or 'replace' stringfunctions case insensitive instead of case sensitive to match the default of the equivalent stringsearcher/stringreplacer transformers


Today I noticed that the for the 'search' or 'replace' string functions that are discussed here, the default setting is to match 'case sensitive', where one needs to specify the optional parameter [caseSensitive] to 'FALSE' to make it match case insensitive. I thought this is a bit confusing, as the default for the equivalent transformers, i.e. the stringsearcher and the stringreplacer, are set to case insensitive.

The string functions this concerns are;

  1. FindRegEx(str, regExp, [startIdx], [caseSensitive], [caretMode])
  2. FindString(str, findStr, [startIdx], [caseSensitive])
  3. ReplaceRegEx(str, regExp, newStr, [caseSensitive])
  4. ReplaceString(str, oldStr, newStr, [caseSensitive])

Personally I prefer the default in searches to be case insensitive, so I would like it if the default of these string functions can be changed to 'case insensitive'.

However, besides my personal preferences, I think it is even more important that the case sensitivity setting of these string functions and the equivalent transformers should be consistent with each other.


This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings