0
http://www.example.com data:blaefrferter 
http://www.example.com data:blaefrferter 
http://www.example.com data:blaefrferter 

I want get rid of the data:blaefrferter using regex, I've tried this ^.*$\s but it doesn't match, what is my mistake?

DAXaholic
  • 33,312
  • 6
  • 76
  • 74
Alien Xu
  • 193
  • 2
  • 3
  • 12

2 Answers2

1

In sublime enter ([^ ]*).*$ for Find What: and $1 for Replace With:

enter image description here

DAXaholic
  • 33,312
  • 6
  • 76
  • 74
1

How about:

Find what: \s+\S+\s*
Replace with: NOTHING

Toto
  • 89,455
  • 62
  • 89
  • 125