Needing replacing a backslash by a comma



Hello,

I just need to know how to find the third backslash in a string like this:

\\192.168.1.2\SYSVOL

It is like it was really \\anything\anything

and then replace it by a comma so that the string can be like:

\\192.168.1.2,SYSVOL

I have been trying with regular expressions but unsuccessfully.

Any ideas?

Thank you!


.



Relevant Pages

  • Re: Problem in splitting a string
    ... Angelo Secchi wrote: ... > that particular comma. ... You may want to look at regular expressions, but in the example you gave, ... you just have to split the string at the quotation marks, ...
    (comp.lang.python)
  • Re: Simple Parse Question
    ... the comma including the comma? ... I.e., if the string is "Hi, how are ... If you need more complex parsing, take a look at Regular expressions. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: CDBL Function truncates decimals
    ... Public Function ConvertNumberforSQL (ByVal sValue As String, ... vlDefaultNumber As Double= 0) as Double ... Since the Spanish formatting has a comma, the SQL statement seems to have ...
    (microsoft.public.vb.general.discussion)
  • Re: Serious Perl Regular Expression deficiency?
    ... I started doing Perl 2 years ago and have ... > conclusion that regular expressions have a serious ... This is serious because the not string ... If you want to pull out the contents of XML comments you could do this. ...
    (comp.lang.perl.misc)
  • Re: Remove characters from string
    ... and your link took me to the templates page at microsoft office. ... there expaining regular expressions unless you meant I should search for it. ... | them to the same format for ease of processing. ... | the string I remove extraneous characters. ...
    (microsoft.public.excel.programming)