in reply to disregard spaces while matching ?
The 'x' modifier is used for writing regular legibly by including spaces inside the regular expression, but it ignore ordinary white spaces.
u try this,
$words_to_match = 'Hello\s+World'; $output_line = /$words_to_match/ix ;
|
|---|