Home > Net >  Can according to the original string and the target string against regular expression
Can according to the original string and the target string against regular expression

Time:09-27

See some people ask the question of the regular expression, a thought, can through our original string are deduced and the target string regular expression?

Practice often encountered this kind of circumstance, to deal with a string, himself a want to target string, but always write wrong the regular expression, if you have a tool can launch a regular expression, that is not mentioned the efficiency greatly!

You give a suggestion or idea, I want to do a such a tool

CodePudding user response:

That is not "gesture you let me guess"
?
Now that is a guess, you think how to play,, of course, is the artificial intelligence

CodePudding user response:

reference 1st floor wanghui0380 response:
that is not "gesturing to guess I" you

Now that is a guess, you think how to play,, of course, is the artificial intelligence


So written in python right?

CodePudding user response:

Cannot, by requiring that it is easy to write regular through regular to judge on the regular doing was more difficult, not to mention your judging by the results and the original string regular how to write

CodePudding user response:

Have enough sample, can

CodePudding user response:

This is unlikely to be.. It is very old.

If it is possible that things would have developed by others..

CodePudding user response:

she would play the soy sauce reference 3 floor response:
cannot, by requiring that it is easy to write regular through regular to judge on the regular doing was more difficult, not to mention your judging by the results and the original string regular how wrote


Now is not the age of artificial intelligence, are theoretically can make impossible possible?

CodePudding user response:

refer to fifth floor by_ love reply:
. This is unlikely to be. It is very old.

If it is possible that things would have developed by others..


Not everyone thinks the machine before go, but later also came out, this also can try ah,

CodePudding user response:

Artificial intelligence is to commercial interests, no interest, who will take the time to study!

And the same kind of results, regular writing can also be different

CodePudding user response:

Can according to the original string and the target string backstepping is regular can but have finished goods did not know that I haven't checked
I think the building Lord now that came up with the can I try to write a write to estimate a lot of people will use the git

CodePudding user response:

refer to the eighth floor she would play the soy sauce response:
artificial intelligence services for commercial interests, no interest things, who will take the time to study!

And the same kind of results, regular writing can also be different


You said this is the current reality, there is no interest things no one to do it, but still worth doing something meaningful words, such as the people who make theoretical mathematics, writing formula nobody give money, but then was being used on other aspects, such as encryption, somewhat beside the point

CodePudding user response:

references 9 f OrdinaryCoder response:
can according to the original string and the target string is the regular surface can but have finished goods did not know that I haven't checked
I think the building Lord now that came up with the can I try to write a write to git on estimated that many people would use


Well, very difficult, a new handwritten don't come out, we had half a day only wrote a case of push,,,

CodePudding user response:

11 references nangongxiaobai response:
Quote: references 9 f OrdinaryCoder response:

Can according to the original string and the target string backstepping is regular can but have finished goods did not know that I haven't checked
I think the building Lord now that came up with the can I try to write a write to git on estimated that many people would use


Well, very difficult, a new handwritten don't come out, we had half a day only wrote a case of push,,,

I also have this idea, many years ago have been also didn't set out to get, only got an online test website: http://www.regexp.cn
Did not find, the feeling can only rely on a lot of different kinds of regular case data, using artificial intelligence could deep learning way,

CodePudding user response:

A little meaning, do you want to have a regular version 2.0?

CodePudding user response:

The
reference 13 floor autumn red fruit reply:
, do you want to make a regular version 2.0?


Probably not?

CodePudding user response:

The key is the regular expression and matching the string is not corresponding relations,
Any string, can push against a ceiling ^. * $,
Can be any string, backtrack a lower limit, is itself, such as 123, can launch ^ $123
Any two strings, can launch a contains the cap on the longest common substring, 123 and 234, for example, can be launched. 23. * *
Launch a bitwise or implementation, such as (1 2) | | (2 3) (3 | 4)
.
If you have a n a string, too, can be an infinite number of meet their regular expression is deduced
The difficulty is that you want to find a minimalist expression, and the expression of the minimalist demands can bring a counterexample to filter out,

CodePudding user response:

Ok, but the out is not the only solution, in principle, by working backward finite set function is infinite,

CodePudding user response:

she would play the soy sauce reference 3 floor response:
cannot, by requiring that it is easy to write regular through regular to judge on the regular doing was more difficult, not to mention your judging by the results and the original string regular how wrote

One regular such as this. Can you push the ha ha

CodePudding user response:

reference 4 floor assky124 response:
have enough sample, you can

The key is, the feeling is difficult to push, such as I only limited several Chinese characters and a few regular. If just pushes the two can achieve, if Chinese characters limit can also be less if it's tens of thousands of it will

CodePudding user response:

The
refer to the original poster nangongxiaobai response:
see someone ask a regular expression, a thought, can through our original string regular expressions are deduced and the target string?

Practice often encountered this kind of circumstance, to deal with a string, himself a want to target string, but always write wrong the regular expression, if you have a tool can launch a regular expression, that is not mentioned the efficiency greatly!

You give a suggestion or idea, I want to be a such a tool

So have to write one thousand lines of judgment statement

CodePudding user response:

You put a monkey in front of computer long enough, it can also write every line of code, you can write a meaningful?

CodePudding user response:

"Can",

This answer like "monkey" as you are, the more is the mouth addiction!

CodePudding user response:

Said the "alpha dog" chess problem, no matter it is not a true artificial intelligence, at the very least, let the alpha dog you teach pupils go give it a try?

The chess logic is not man's way of thinking, and the idea of the machine only, then you said "write a regular expression," what people don't pull machine train of thought, what's the regular tube?

CodePudding user response:

My intuition told me, this should be possible,


String through the target and the source string - be able to get more regular expressions,
By multiple test samples, get the intersection of the regular expression,

The building Lord, I see you well,


CodePudding user response:

nullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related