Is there a regular expression pattern that matches the string containing the repeating pattern, for example:
"a" | "b", "c" | "d", ..., "y" | "z"
Do you have any ideas?
Perhaps you are looking for something like this:
^"."\|"."(,"."\|".")*$
This will correspond to a comma-separated list of sequences of the form "α "|"β ", where α and β can be any character.
"
"|"
Just note that to really look for a repeating pattern, you can use a grouping like this:
<(htmltag>).*\1
\1 1- . ?
Source: https://habr.com/ru/post/1704792/More articles:Fast divisibility check in ZX81 BASIC - divisionWhat is the best way to prevent developers from calling System.Windows.Forms.Application.DoEvents ()? - c #iPhone - import / export application data? - importAlgorithm for the following homework - sqlSQL, Order By - How to give more authority to other columns? - sqlIs there a way to get the name of the track that Windows Media Player plays? - windowsHow can I create an array of ints - objective-cCan someone give me a good reason why a statement in php behaves the way it does? - phpPractical Guide: Ajax Button Support - javascriptКак составить представление списка с помощью метода group() в python? - pythonAll Articles