Lucky wrote:
> hi guys,
> i'm practising regular expression. i've got one
string and i want it to
> split in groups.
> i was trying to make one regular expression but i
didn't successed.
> please help me guys.
>
> i'm using .NET 2.0's Regular expression class.
>
> here is the string.
>
> [Bulk] [symbiancollection] Free English & Indian
Movies 36 China Town,
> Gangster , Mission impossible 3
>
>
> i need this output:
>
> group 1 : [Bulk]
> group 2 : [symbiancollection]
> group 3 : Free English & Indian Movies 36 China
Town, Gangster ,
> Mission impossible 3
>
> please,please guys help me out with this regular
expression. i've found
> it interesting but it seems hard to learn this thing.
you may try this pattern:
\A(\[[^]]*\])\s*(\[[^]]*\])\s*(.*)\z
or if you have a "split" function, you can use
the following pattern to
split your string into three pieces:
(?<=\])\s+
Xicheng
> thanks,
> Lucky
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|