Yes, I tried that but then it looks into all strings in the given line. I need it to look at only the first letter of the first string.... .. any ideas?
Please give complete examples of the lines that you are searching and describe precisely what in these lines you want to match. Please put your text examples in a "code" block, like this:
I am using webMethods to do so and have a javaclass that will do it for me. The only thing that I need determine the delimiter in Regular Expression that will search for "E" as the first letter in the first string of the line. Hope its not to confusing.
Hmmm, I see a few problems you'll be having. The first is that you'd like to split the results out into a file per match and that is nothing a text editor is likely to do. The second is that you want to match the line that starts with E and the two lines after that. If it is always 3 lines that need matching, then ^E.*\n.*\n.*
will work to match. At this point, you'll still be stuck with how to split the file out. I suspect a quick script/program will be your best bet but if you are writing that, you might as well incorporate the regular expression into it.
In Textpad (you are here in a support forum for the text editor Textpad) ^ anchors the regex at the beginning of the line. Definitely.
If you are seeking support for some other regex engine here in the Textpad forum, the very least you should do is to specify that you are not talking about Textpad's regex engine, and which regex engine you do use.
Ok, you are using java - but still there are several regex engines implemented in Java (java.util.regex, gnu.regex, jakarta.regex, com.ibm.regex just to mention a few ...)
You should also mention how you are using your regex engine (flags in the calls might matter ...)