in reply to Regular Expression - pattern matching
You've provided some sample data - good!
You've provided the code that you've written so far - excellent!
But - have actually told us what the code is supposed to do?
Some pattern matching obviously, but what are the rules?
Once again, you're asking people to second-guess what it is that you are trying to do. If you expect sensible and helpful answers to your questions, you need to be more explicit.
For example, you might have said: "If the string starts with two word characters, I want to extract the first 13 characters, otherwise I want to extract the first 27 characters"
(That obviously isn't what you are trying to do with your code, but hopefully you get the idea)
Cheers,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular Expression - pattern matching
by kulls (Hermit) on Feb 22, 2006 at 09:22 UTC | |
by McDarren (Abbot) on Feb 22, 2006 at 10:21 UTC | |
by kulls (Hermit) on Feb 22, 2006 at 12:44 UTC | |
by McDarren (Abbot) on Feb 22, 2006 at 17:55 UTC |