Answer the question
In order to leave comments, you need to log in
Is there a character in regular expressions that means "not"?
Good day to all.
I have data. However, there are rows in this data in which the data is not written according to the format. For example:
all dates are written in the format dd.mm.yyyy, but there are lines in the file where the date is written, for example, in dd.mm.yy, or there d.m.yyyy, etc. Of course, you can write a regular expression , which describes these inconsistencies, but it would be easier (I think) if there was some tool where you describe the main pattern, but look for all lines that do not match this pattern. Does such a solution exist in regular expressions?
Answer the question
In order to leave comments, you need to log in
This tool is called a programming language, you want too much from regular expressions.
1) Select a regular expression all lines where d.m.yyyy
2) Convert to dd.mm.yyyy
PROFIT !!
But it’s not the regular season that should convert in any way. Where should she put it? There is an array for this.
In itself, denial is [^a]
(not a)
Strictly speaking, for those who do not know how and do not want to program (surprise: there is nothing wrong with this), there are commercial products like PowerGREP and RegexBuddy that allow you to build very complex processing based on regular expressions (and debug regular expressions themselves). There is nesting, and the use of patterns in file names and paths - it's too much to list.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question