View Single Post
Old 01-08-2017, 02:32 PM   #1
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
REGEX match everything before #

Hi all

I can't seem to get my regex right.
I have a file with a lot of enumerations (if that's the correct translation).
For example:
102 # blabla
103 # blabla
450 # blabla
499 # blabla

I want to delete al the numbers AND the # and keep only the blabla

Would something like this be right?
Code:
.*(?##)#
and replace with nothing.

Thanks a lot!

Last edited by JLius; 01-08-2017 at 02:53 PM.
JLius is offline   Reply With Quote