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 :)
In reply to Re: Regular Expression - pattern matching
by McDarren
in thread Regular Expression - pattern matching
by kulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |