Re: Location of a character in a string



On Tue, 2007-09-25 at 12:03 -0700, mohitanchlia@xxxxxxxxx wrote:
Version: IDS 10

I looked at all string manipulation function that IDS provides but
couldn't find:

1. Something that gives me the location of a character in a string.
2. Or, something that works like sed in terms of replacing characters
using regular expression.

I've never used it myself, but the regex datablade at
http://www.ibm.com/developerworks/db2/zones/informix/library/techarticle/db_regexp.html might help.

HTH,

--
Carsten Haese
http://informixdb.sourceforge.net


.



Relevant Pages

  • Location of a character in a string
    ... Version: IDS 10 ... I looked at all string manipulation function that IDS provides but ... Something that gives me the location of a character in a string. ... using regular expression. ...
    (comp.databases.informix)
  • Re: Whar are invalid characters in a hardware or compatible id?
    ... I need to know an ASCII character that is definitely invalid in a hardware ... Our software has to send the hardware IDs and compatible ... IDs of a Windows client via a Webservice interface across the wire. ... appear in hardware IDs or compatible IDs. ...
    (microsoft.public.development.device.drivers)
  • Whar are invalid characters in a hardware or compatible id?
    ... I need to know an ASCII character that is definitely invalid in a hardware or compatible ID. ... Our software has to send the hardware IDs and compatible IDs of a Windows client via a Webservice interface across the wire. ... Somewhere in the remote logic a third party LDAP parser comes into play which is so buggy that it gets entirely confused by backslashes as they appear in hardware IDs or compatible IDs. ... So as a workaround I would like to replace all backslashes in the hardware IDs I find via setupapi and cfgmgr32 APIs with a surrogate character so the LDAP parser will work. ...
    (microsoft.public.development.device.drivers)
  • Re: Simple string search
    ... can you explain the following regex? ... I am not sure about this 12 between brackets. ... means "any character" ... in this example the ids ...
    (comp.lang.perl.misc)