I'm looking to take a string of the form:
Article Title Of Unknown Length by Author Name: some.url
And simply change it to:
ARTICLE TITLE OF UNKNOWN LENGTH by Author Name: some.url
I have tried various options that will successfully pick out the article title, such as
(^.*?by)
and will replace it with whatever I want. e.g. if I say
replace [(^.*?by)] with [test title]
the above becomes:
test title by Author Name: some.url
However, whenever I try to replace it with \U$1 it makes the whole string uppercase rather than just what matches the query.
What am I doing wrong? I am complete regex noob by the way, only started an hour ago, but any help would be hugely appreciated...