Can someone explain what matches the following regular expression?
^.*$
Thank!
Either an entire line or the entire line is used, depending on whether multi-line mode is used .
all.
^ is the beginning of the string. . is any character. * means 0 or more of said characters. $ is the end of the string.
So, this regular expression matches 0 or more characters that start and end a line (that's all).
. :
^ : match the beginning of the line . : match any character except newline * : match zero or many instances of the match $ : match the ending of the line
.
^ . $ . , , .
^
$
. . * , 0 . , , , 0.
*
^= ( ).
.= .
*= . ..
$= ( ).
, , (. this . ).
, ...
It looks like it matches everyone, including blank lines. *. * Means that it matches all (period) 0 or more times (*). The ^ and $ elements are redundant if you set the multline flag (not sure what it is in java).
Source: https://habr.com/ru/post/1758933/More articles:Should the end user have .NET 3.5 or .NET 4.0 to run Silverlight 3 and 4 applications? - .netHow does JBoss choose which AJP port to use? - jboss5.xHow to close (hide) the FBML dialog using the new Facebook SDK? - javascriptComplex translation structure with lazy pricing - javaMS Word: How to effectively create Building blocks? - ms-wordNHibernate objects and multiple associations - entityhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1758935/distributed-computing-application-in-azure-provided-as-a-web-service-to-desktop-view-application&usg=ALkJrhjpnW_EdPJZMvvUM2NiK0XkesN0ngProper implementation of C # TCP reconnect client - c #WCF service deployed in Azure - serviceTrying to understand the SQL statement where - tsqlAll Articles