Regex tester
Pattern
Input
-- some comments create
/* some more comments create
some more create
*/ 
create
Options
Replacement
Click the context tab to see replacements.
3 matches found in about 1 millisecond.
IndexPositionMatched String$1$2
00-- some comments create -- some comments create empty string
125/* some more comments create
some more create
*/
/* some more comments create
some more create
*/
empty string
278createempty stringempty string
-- some comments create/* some more comments create
​some more create
​*/create
  1. empty string
  2. -- some comments create
  3. whitespace
  4. /* some more comments create
    some more create
    */
  5. whitespace
  6. empty string