Match Sequence using RegEx After a Specified Character
regex
Solution
Use a look-behind:
(?<=:)[\w+.-]+
A look-behind (coded as `(?<=someregex)`) is a zero-width match, so it asserts, but does not capture, the match.
Also, your regex may be able to be simplified to this:
(?<=:)[^\]]+
which simply grabs anything between (but not including) a `:` and a `]`
Problem
The initial string is [image:salmon-v5-09-14-2011.jpg] I would like to capture the text "salmon-v5-09-14-2011.jpg" and used GSkinner's RegEx Tool The closest I can get to my desired output is using this RegEx: ``` :([\w+.-]+) ``` The problem is that this sequence includes the colon and the output becomes ``` :salmon-v5-09-14-2011.jpg ``` How can I capture the desired output without the colon. Thanks for the help!