|
theOneAndOnlyMrT Newbie
Joined: 15 May 2008 Posts: 3
|
Posted: Thu May 15, 2008 3:13 pm
Regex Question... |
I've been trying and trying and can't seem to figure this out. I've read a bunch of regex posts and am lost.
Here's example mud output:
Chrysoberyl - Catspaws: Catseye(T) Hairball(B) Litterbox(A)
or
Wow - Hammac: Whoo(A)
or
Yarl - Frazzle: Mermoon(A) Mersun(I)
So here's what I've come up with:
^(?systemname:\w+) - (?ownername:\w+):( (?planetname:\w+)\((?planettype:\a)\))+
I'm not exactly sure what I'm doing wrong. Can anyone try to help me? Thanks a million |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu May 15, 2008 3:14 pm |
You may find this topic helpful, since it seems to be matching exactly the same text.
The trouble with using + in this way is which of the planets is going to end up in the variable, when there's more than one of them. |
|
|
|
theOneAndOnlyMrT Newbie
Joined: 15 May 2008 Posts: 3
|
Posted: Thu May 15, 2008 3:16 pm |
Wow, thanks :)
|
|
|
|
|
|