Page 1 of 1

regular expression help

Posted: Thu Apr 05, 2007 6:44 pm
by dabombst
Hi

I would like to delete everything between delimiter in each line.
sample...
þþþþþþþ000000001A6F87258ECABF42A145ECD486D2EF6E24002000þþc4ad4c39f9529dc1d518571945c02d2cþ
þþþþþþþ000000001A6F87258ECABF42A145ECD486D2EF6E44002000þþ2decd1417925927ccb218af0fd6a5b58þ
þþþþþþþ000000001A6F87258ECABF42A145ECD486D2EF6E64002000þþb838ede37cd282fb534175c0ad9842d8þ
þþþ11.0þþþþ000000001A6F87258ECABF42A145ECD486D2EF6E84002000þþfa3f9ca4ac059331cb7bf09420083108þ
þþþ11.0þþþþ000000001A6F87258ECABF42A145ECD486D2EF6EA4002000þþ1935562004172ce8e46e30360c5feb95þ
þþþ11.0þþþþ000000001A6F87258ECABF42A145ECD486D2EF6EC4002000þþef7fc296fb382f90745a2dd2a4c5037eþ

output
000000001A6F87258ECABF42A145ECD486D2EF6E24002000
000000001A6F87258ECABF42A145ECD486D2EF6E44002000
000000001A6F87258ECABF42A145ECD486D2EF6E64002000
000000001A6F87258ECABF42A145ECD486D2EF6E84002000
000000001A6F87258ECABF42A145ECD486D2EF6EA4002000
000000001A6F87258ECABF42A145ECD486D2EF6EC4002000

Thanks

Posted: Thu Apr 05, 2007 7:28 pm
by bveldkamp
That's an odd symbol? Try this

Code: Select all

Search  ^.+þ(0[^þ]+).*$
Replace \1

Posted: Thu Apr 05, 2007 9:41 pm
by ben_josephs
It's a thorn, used in Old English and modern Icelandic.

In some forms it looks vaguely like a "Y", and is the origin of the "Y" in such nonsense as "Ye Olde Tea Shoppe".