Re: Regular expression
- From: "Geoff Jones" <nodamnspam@xxxxxxxxx>
- Date: Tue, 9 Aug 2005 14:12:05 +0100
Thanks everyone.
The reason I wanted to use Regular expressions was merely to learn more
about it i.e. I agree that the String class can be used but I wondered how
Regex could be used.
Thanks again
Geoff
"Dragon" <no@xxxxxxxxxxx> wrote in message
news:%23fa$w8NnFHA.3900@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Jeoff,
>
> If you really want to use regex for this job it will be:
>
> ~
> Dim str As String = "This is a test & I hope it works"
> Dim result() As String = Regex.Split(str, "&")
> ~
>
> However, if I were you I would use:
>
> ~
> Dim str As String = "This is a test & I hope it works"
> Dim result() As String = str.Split("&"c)
> ~
>
> Hope it helps
>
> Roman
>
>
.
- References:
- Q: Regular expression
- From: Geoff Jones
- Re: Regular expression
- From: Dragon
- Q: Regular expression
- Prev by Date: Re: Help
- Next by Date: Re: save size after using splitter
- Previous by thread: Re: Regular expression
- Next by thread: Re: Regular expression
- Index(es):
Relevant Pages
|