Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

regex

Name: Anonymous 2008-03-06 7:43

Looking for some regex (using the RegEx in Java 1.6) help, if anyone can provide.

Is there a way to tell regex to get characters until it sees five consecutive spaces?

Example:
"Tag: Some Words     Tag2: More Words"

I just want to get "Tag: Some Words", and the best I've come up with thus far was regex "Tag:[a-zA-Z\s]{1,}\s{5}". I want to tell it to get single spaces, but I want it to quite when it at least has seen two consecutive spaces in a row...

thanks in advance.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List