I want to create a regular expression that matches input text that starts with a given word and this word may be followed by 0 or more characters(any type of character).
For example if the word is
$$(hello)$$
Will the following regular expression match the above stated requirements:
^\$\$\(hello\)\$\$.*
Go here: http://regexpal.com/
You can test out what will and won’t work. Great for testing out regex quickly. What you wrote will work with your example, but I would run it through some more tests to be sure.