Special characters like the slash must be escaped with a back slash.
To match until a specific character occurs use
.*
or
.+
follwed by that character. Because those are
greedy (the term should be handled by every regex tuturioal), append a
?
.
So the final regex might be:
(dd300\/.+?,)
The parentheses are only necessary when you need to access the matched string.
Depending on your input you may also use a more specific regex. If for example the
dd300
is always follwed by two slash separated numbers it can be
(dd300\/\d+\/\d+,)
where
\d
specifies any digit which is the same as using
[0-9]
.