Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg Exp Match all 1

Status
Not open for further replies.

MarkZK

Technical User
Jul 13, 2006
202
GB
Hi,

Still getting to grips with regular expressions.

If the fullstop matches everything but the newline, what matches everything including newlines (if anything) or what can I do to match all characters and none characters ?

Thanks for your time.
 
In logic a or non-a is always true. Same here. All these pattern match all characters of any length (*).
[tt]
.pattern="[\s\S]*"
.pattern="[\w\W]*"
.pattern="[\d\D]*"
.pattern="([x]|[^x])*" 'more and more silly
.pattern="(a|[^a])*"
etc etc...
[/tt]
 
Perfect, I went with .pattern="[\s\S]*"

Thanks Tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top