Others have provided some practical reasons for why your edit may have been criticized. But I feel that they leave you without a good basis for judging when or how to make such edits in the future... So I'm going to try to dig into that a bit in this answer, as generally-speaking edits that improve code formatting are a critical role here and I don't want you to get the wrong idea.
This was the edit you submitted - you should still be able to see this, even though the question is now deleted. Take a good look at the right-hand pane.
Now pretend you were looking to answer the question after your edit...
- Is the question clear and specific as to what the asker is trying to do?
- Does the question include sufficient detail on the language or platform involved to allow those with knowledge of that area to find it?
- Has the asker indicated where, specifically, they're having trouble?
- Is there sufficient information in the question to determine if a given answer solves the problem?
I think that you'll find the answer to all 4 questions is No. And your edit does nothing to improve the situation for any of them - not because you did anything wrong with the formatting, but simply because none of the problems were with the formatting to begin with:
We know that the asker is trying to extract sequences from a file; they describe their goal as, "extract how much number in an ELSET". Unfortunately, it's not clear if the goal is to store the individual numbers in a sequence in some other format, pass them off to another API, count the length of the sequences, calculate the extent of each sequence or all sequences, or... Something else. This is partially a language issue, but for us it's a matter of incomplete specs - either the asker isn't clear on what they're trying to do, or they are incapable of communicating it effectively.
The title suggests it's a regex question but doesn't specify a platform or regex engine. The tags include both bash and python - which have different regex engines. The question implies that either one is acceptable, as is literally any other language - this is probably not actually true however.
Worse, there's no information whatsoever on the format of the input file. It looks like an abaqus file; if that's the case, mentioning that (and using the tag) would've helped a great deal; it's guaranteed the folks who have experience working with this format are a much smaller group than "anyone with regex experience in any language on any platform".
No, there's no indication that the asker has put any thought or research into this problem at all, much less any indication of where, specifically, they need help.
Nope; as noted for #1 above, we know nothing aside from that the asker wants to do something with the sequences; since we don't even know where they're having trouble (#3) we can't even assume that simply reading the data into Python datastructures would be sufficient; they may in fact have no knowledge of Python.
In short, this is the very definition of a Very Low Quality question. It is now deleted because of this; even if your edit had been accepted, it would've been for nothing.
A theoretical heroic edit
So what would a useful edit have looked like in this scenario? Well... You'd have needed to correct at least 1 of the four deficiencies outlined above. Realistically, this means you would've needed to guess at what the asker wanted, since they provided no clarifying information in comments or otherwise.
You could've decided the goal was to count the number of distinct values contained in each sequence. There's no indication that this is what the asker wanted, but it's as plausible as anything else; you would then re-write the question to reflect this.
You could have picked "python" and "abaqus" as the two relevant platforms, altered the tags to reflect this, and altered both the title and closing sentence to limit the question to this field.
You could've made up some long back story about how the asker, a beleaguered student, was tasked by his professor with processing a data file in some arbitrary fashion, and after trying for days to make a bash script work had come to the conclusion that Python was a better choice - but knowing nothing about the language was at a loss as to where to start.
This is functionally identical to #1, except that you could possibly get away with just generating a desired output listing instead.
If all of these approaches sound risky, time-consuming and slightly dishonest... That's because they are. No one in their right mind would do any of them unless they were super invested in the question itself for some reason. I mention them only to illustrate just how far this question was from anything remotely acceptable or answerable - while for many questions the biggest problem facing acceptance is the presence of unformatted code, for this one salvation can only come in the form of you taking on the role of short-fiction writer.
This, more than anything else, is what you should look for when deciding whether or not to edit: is the work you're willing to put in likely to make any effective difference in how the question is received? If not, then you can save yourself the time and pick out another question where your efforts will be appreciated.