[\w\W] and [\d\D] are used in languages ββsuch as JavaScript, which do not have a child option. It matches all characters, including newlines, as opposed to . that matches all but the newline.
\w\W or \d\D -> matches everything including newline characters . -> matches everything except newline characters unless 's' (dotall modifier) is specified (\d+|) or (\d+)? -> matches 1 or more digits OR any position (null) It could simply be written as '(\d*)'
Anirudh Ramanathan Feb 01 '13 at 14:46 2013-02-01 14:46
source share