Q:

In Regex how to match in between the words?

I want to write the regex pattern which should match the string in between also. 
For example:
I have writtenthe regex pattern like this 
^((?!mystring).)*$

Which means match words which doesnot contain mystring. But i want regex pattern to match like this.
mystringabcdfrevrgf

regex matcher should return 
abcdfrevrgf

How will i achieve this, Please help Thanks in advance.
Answer:
((?!mystring)(.*))$

A:

Wouldn't it be easier to remove mystring from the string you're matching?
As in (Python example):
>>> re.sub("mystring", "", "mystringabcdfrevrgf")
'abcdfrevrgf'

which of course only makes sense if mystring is in fact a regex, like
>>> re.sub("my.*?g", "", "xyzmystringabcdfrevrgf")
'xyzabcdfrevrgf'

Otherwise, plain string manipulation functions would be faster, of course.

