RegEx

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

This might be a strange question but what should be the RegEx
expression that accepts everything?

Thanks,
Miguel
 
re:
!> what should be the RegEx expression that accepts everything?

$

I don't see why you should need it, though.
Just not using any RegEx will match everything.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Hello Alexey,


That's not entirely true. . matches everything except a newline character,
unless the SingleLine option is also specified.

So either:

(?s:.*)

or

(\W|\w)*
 
Hi, Jesse.

Doesn't :

$

....work, too ?

$ matches the ending position of the string
or the position just before a string-terminating newline.

In multiline mode, it matches the ending position of any line.

Ergo, it matches *all* text submitted...




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Hello Alexey,


That's not entirely true. . matches everything except a newline character,
unless the SingleLine option is also specified.

So either:

(?s:.*)

or

(\W|\w)*

well, it's true, "everything" must include a newline character :-)

(.|\n)*
 
Back
Top