473,395 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Regular Expressions TExt Editor

Wondering if anyone has a suggestion on what regular expression text editor to use? I have been using only notepad so far, bu need some more sophisticated app to analyze logs etc.. Basically i need to be able to say "delete all lines containing this pattern" or everything but..

I heard of vim but i think it is for unix mostly (heard that ported to windows as well).

Any other suggestions?

BTW, i need a freeware tool ;)

Thanks!
Mar 14 '08 #1
4 1053
JosAH
11,448 Expert 8TB
Wondering if anyone has a suggestion on what regular expression text editor to use? I have been using only notepad so far, bu need some more sophisticated app to analyze logs etc.. Basically i need to be able to say "delete all lines containing this pattern" or everything but..

I heard of vim but i think it is for unix mostly (heard that ported to windows as well).

Any other suggestions?

BTW, i need a freeware tool ;)

Thanks!
vim (or gvim) had its origins in Unix but it does fine on a windows box:
http://www.vim.org

kind regards,

Jos
Mar 14 '08 #2
thanks Jos,

installed gwim..

I am really a newbie in this kind of scripting, but as far as i can see, i need to write a script (.vim) and run the script when i load my log file.

I want to remove the lines containing this phrase for example "FromOS"

Can someone please help me on how to work this out?
Mar 14 '08 #3
JosAH
11,448 Expert 8TB
thanks Jos,

installed gwim..

I am really a newbie in this kind of scripting, but as far as i can see, i need to write a script (.vim) and run the script when i load my log file.

I want to remove the lines containing this phrase for example "FromOS"

Can someone please help me on how to work this out?
You can do it like this in vim:

Expand|Select|Wrap|Line Numbers
  1. 1,$s/FromOS/d
  2.  
(skip the leading line #1)

kind regards,

Jos
Mar 16 '08 #4
You can do it like this in vim:

Expand|Select|Wrap|Line Numbers
  1. 1,$s/FromOS/d
  2.  
(skip the leading line #1)

kind regards,

Jos
thanks Jos, i had do it like this
Expand|Select|Wrap|Line Numbers
  1. 1,$g/FromOS/d
  2.  
i would really appreciate if you could assist me with this a bit further. I wonder how can i delete every other line, but the lines containing "FromOS"?

thanks!!
Mar 20 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Michael McGarry | last post by:
Hi, I am horrible with Regular Expressions, can anyone recommend a book on it? Also I am trying to parse the following string to extract the number after load average. ".... load average:...
1
by: Kenneth McDonald | last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API and feature sets. rex is a module intended to make...
1
by: Daniel Walzenbach | last post by:
Hi, does anybody know I can extract a substring of a text with regular expressions. Let’s consider the following text: “Regular expressions are often used to make sure that a string matches a...
7
by: Billa | last post by:
Hi, I am replaceing a big string using different regular expressions (see some example at the end of the message). The problem is whenever I apply a "replace" it makes a new copy of string and I...
6
by: Ludwig | last post by:
Hi, i'm using the regular expression \b\w to find the beginning of a word, in my C# application. If the word is 'public', for example, it works. However, if the word is '<public', it does not...
25
by: Mike | last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in matches. I would like to get what the actual regular expression is. In other words, when I apply ^(.+)(?=\s*).*\1 to " HEART...
3
by: Zeba | last post by:
Hi guys, I need some help regarding regular expressions. Consider the following statement : System.Text.RegularExpressions.Match match =...
2
by: Stimp | last post by:
Hi all, I'm having trouble trying to figure out the best approach to this problem and I believe regular expressions are the way to go. Basically I have created a large string of XHTML using a...
9
by: Rene | last post by:
I'm trying to basically remove chunks of html from a page but I must not be doing my regular expression correctly. What i'm trying with no avail. $site = preg_replace("/<!DOCTYPE(.|\s)*<div...
9
by: netimen | last post by:
I have a text containing brackets (or what is the correct term for '>'?). I'd like to match text in the uppermost level of brackets. So, I have sth like: 'aaaa 123 < 1 aaa < t bbb < a <tt ff 2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.