Regex help needed

From: BernieH (bhoughton_at_ozemail.com.au)
Date: 06/17/04

  • Next message: those who know me have no need of my name: "Re: Regex help needed"
    Date: Thu, 17 Jun 2004 15:54:31 +1000
    
    

    I need to set up a regex to convert a text string (actually a word) to all
    lowercase.

    The application in which I need to use the regex supposedly supports POSIX.
    (The application is a link resolver, specifically, Innovative's WebBridge).

    Regexes need to be in the form /string to match/replacement string/

    I'm able to replace single characters at a time, e.g. /M/m/ to convert
    uppercase M to m. And I can even figure out a way to do what I want using a
    long string such as /A/a/g_/B/b/g_/C/c/g etc - except that the application
    will accept only a maximum of 12 expressions, way short of the 26 I'd need
    for my purposes.

    I've tried fiddling around with \L but the application insists on
    recognizing this only as a text string.

    Can anybody suggest anything else to try??

    TIA

    Bernie


  • Next message: those who know me have no need of my name: "Re: Regex help needed"

    Relevant Pages

    • Re: Fastest way to search a string for the occurance of a word??
      ... but the OP's question was what's the "Fastest way to search a string ... in all the tests I did here, the Regex was by far superior. ... However, of course, if you've got new regular expressions all ... Sure - but just that extra Match object could be relevant if the search ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: regular expression help
      ... Basically because if you remove everything that is optional in the regex below you end up with an empty regex: ... So the regex engine will try to match on every character in the string: ... , comma doesn't match, but the nothingness in front of it does. ... A quote followed by any sequence of characters that is not a quote, ...
      (microsoft.public.dotnet.framework)
    • Re: Regex optimization
      ... I was hoping that someone with knowledge of the Regex engine could ... match per string for either Regex. ... reluctant modifier, may be slower .*?, +? ... Variable parts will try to capture as much as possible. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Regex Capture problem
      ... "learned" my regex using a freeware utility that had slightly different ... was trying to capture instead of. ... I have used Regex utilities before, so I understand the concepts of text ... Function RESub(str As String, SrchFor As String, ReplWith As String) As String ...
      (microsoft.public.excel.programming)
    • Re: Trim a multiple line message to a single line
      ... You can do this quite easily with either a regex or a simple function I'll try to demonstrate both: ... private string LayoutInput ... Could you send a sample file with two of these data blocks f what ...
      (microsoft.public.dotnet.languages.csharp)