Organizational Research By

Surprising Reserch Topic

Matching Patterns in Text: Character literals


The very simplest pattern matched by a regular expression is a literal character or a sequence of literal characters. Anything in the target text that consists of exactly those characters in exactly the order listed will match. A lower case character is not identical with its upper case version, and vice versa. A space in a regular expression, by the way, matches a literal space in the target (this is unlike most programming languages or command-line tools, where spaces separate keywords).


asked Sep 13, 2013 in Regular-exp by rajesh
edited Sep 12, 2013
0 votes
29 views



Related Hot Questions

1 Answer

0 votes

 

/a/

Mary had a little lamb.
And everywhere that Mary
went, the lamb was sure
to go.

/Mary/

Mary had a little lamb.
And everywhere that Mary
went, the lamb was sure
to go.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...