View Full Version : [RegExp] Find row of uppercase letters
Danke
February 2nd, 2005, 08:22 AM
I'm not very good at regular Expressions, so can anyone help me find out a string test for the following sentences.
EVERY SENTENCE HAS ONE or more uppercase letters.
But not every line.
WHAT I NEED IS TO TAKE the lines which starts with two or more uppercase letters, and make them bold. If possible.
COULD ANYONE HELP me out with this. Your help is really appreciated.
iloveitaly
February 2nd, 2005, 09:24 AM
Do you just need to test for two uppercase chars in the beggining or can the two uppercase chars be anywhere in the sentance?
Danke
February 2nd, 2005, 09:28 AM
No, i need all the uppercase letters in the start of the sentence.
Example (better explained)
THIS SENTENCE STARTS with uppercase letters.
after the expr. it should look like this:
THIS SENTENCE STARTS with uppercase letters.
So with pseudo code it should look like this:
if line starts with uppercase letters then
BOLD until small letter occurs.
end if
Danke
February 2nd, 2005, 10:26 AM
Solved it myself after some more googling and itching the back of my head.
This should do it:
[A-Z]+(\s|,)
amitgeorge
February 2nd, 2005, 10:40 AM
Solved it myself after some more googling and itching the back of my head.
This should do it:
[A-Z]+(\s|,)
That should be your first intent :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.