i having trouble getting regular expression match following:
expected /.*ipcal\nipcc\nipcm\nipcontact\nipescalate\nipim\n.ippm\nipradar./ match "equens-prod-ipmon01\nequens-prod-ipmon02\nequens-test-ipmon01\nevryone-prod-ipmon01\nevryone-prod-ipmon02\nipcal\nipcc\nipcm\nipcontact\nipescalate\nipim\niplocksmithv2\nipmonui\nippm\nipradar\nipradar new request".
does .* not match 0 or more times in ruby or need modifier allow match new lines, thinking 's' modifier.
thanks!
thanks everyone's help.
i needed add 'm' modifier assert_match , regular expression started matching.
here final product:
assert_match(/(?i).*ipcal.*ipcc.*ipcm.*ipcontact.*ipescalate.*ipim.*ippm.*ipradar.*/m, subtabs.text)
Comments
Post a Comment