T
Tom McCallum
Hi,
I am trying to replace all words starting with a question mark - how do
you do this? Have tried everything I can think of to get Java to not use
? as just being a character but it keeps on failing.
Example:
String to be replaced: My name is ?myname
Replace with string: Tom
Problem: how to write a regular expression in Java to replace '?myname'
with 'Tom'.
Many thanks for your help in advance
Tom
I am trying to replace all words starting with a question mark - how do
you do this? Have tried everything I can think of to get Java to not use
? as just being a character but it keeps on failing.
Example:
String to be replaced: My name is ?myname
Replace with string: Tom
Problem: how to write a regular expression in Java to replace '?myname'
with 'Tom'.
Many thanks for your help in advance
Tom