Re: regular expressions help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I want to grab the 4th item from the entire string of this
d|d|d|string of text 1||s|s|||dd.dd|ss|string of text
2||||||||||||||||||||||||||string of text 2
1|1|1|ABCDEF.....XYZ 1||A|A|||11.11|AB|ABCDEF.....XYZ
2||||||||||||||||||||||||||ABCDEF.....XYZ 2

I only need string of text 1 for display, not d|d|d|string of text 1||
s|s|||dd.dd|ss|string of text 2||||||||||||||||||||||||||string of
text 2.



On Jan 9, 12:14 pm, supercrossk...@xxxxxxxxx wrote:
I am trying to the values of string of text in the sample before. The
ds are for digits and s is for string and string of text is for a
string with more than one or two values. I am trying to use regex and
the .groups method. Please help.

d|d|d|string of text 1||s|s|||dd.dd|ss|string of text
2||||||||||||||||||||||||||string of text 2

I only want string of text1

.



Relevant Pages

  • Re: Persias playing with the string!
    ... >> Persia bats the string around and even though some evil person front ... >> declawed her she manages to grab the string with her paw. ... > using string - even thick ones like shoe/boot laces! ... > turned the ceiling fan on and sat back and LHAO while watching Smokey ...
    (rec.pets.cats.anecdotes)
  • Re: Persias playing with the string!
    ... Tyrone will grab it and drag it and Miss Pua just can't resist ... >> Persia bats the string around and even though some evil person front ... > string - even thick ones like shoe/boot laces! ... > Smokey tried to haul her prey off to be killed - her prey was duly taken ...
    (rec.pets.cats.anecdotes)
  • Re: Textbox line property
    ... Create a textbox multiline option true, and set it to like 25 ... I want to grab as 2 lines out. ... Basically if you have a "super long string" and would like to parse ... what you have after displaying a String are not lines but an image. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Hex to Binary Conversion
    ... In 3 byte chunks i need to grab the ... a decimal number which will be a multiplier for a function that I will have ... You want to convert an integer to a string formatted as ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hex to Binary Conversion
    ... In 3 byte chunks i need to grab the ... to binary string conversion), then I will have to take the 2s complement of ... a decimal number which will be a multiplier for a function that I will have ... You want to convert an integer to a string formatted as ...
    (microsoft.public.dotnet.languages.csharp)