I am new to regular expressions.
Is it possible to match everything before a word that meets a certain criteria:
E.g.
THIS IS A TEST – – +++ This is a test
I would like it to encounter a word that begins with an uppercase and the next character is lower case. This constitutes a proper word. I would then like to delete everything before that word.
The example above should produce: This is a test
I only want to this processing until it finds the proper word and then stop.
Any help would be appreciated.
Thanks
Replace
with the empty string. This works for ASCII input. For non-ASCII input (Unicode, other languages), different strategies apply.
Explanation
The Java Unicode-enabled variant would be this: