VBScript regex question (.*) -


I am using VBscript in QB and I am a little confused:

  browser ("Name: =. *") // works  

Why the browser ("name: = *") does not work?

While the normal wildcard ( Just as many files are used in the shell to specify at once-e.G. * .txt ) Only the query ( * ) is zero Or an indication for more arbitrary characters, this is the one in regular expression. This tells the regex engine about the predecessor token

However, after = a * one Matches . Equals 0 or greater will be equal to sign ( = ) - Since the asterisk always works on predecessor token, which is just an equal sign here.

Note: A token can be many things, such as = , a character group, such as . , \ w or [AG] , a group like (ABC) then abcabcabc And any string like c. This allows for more rich type of expression that you can define in comparison to plain old wildcards.

Generally, the near similarity between the wildcard and regular expression catches up; There are some details that can not be immediately apparent:

  wildcard reggaex ------------- *. *? . [A-z] [a-z]  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -