in reply to Re: Comparing string to array elements
in thread Comparing string to array elements

Hi Lotus,

I used the s modifier because i needed the .+ to match new lines too. Is that the way to go?

  • Comment on Re^2: Comparing string to array elements

Replies are listed 'Best First'.
Re^3: Comparing string to array elements
by Lotus1 (Vicar) on Jan 13, 2017 at 16:04 UTC

    Yes, I used the s modifier in both of the regex's in my example. I changed my node a little to make clear I was saying my example might not be the most efficient. I wasn't referring to the use of the s modifier.

      Sorry for not responding earlier. I agree, it might be easier to do this than to compare 2 arrays. It's not as efficient as I've already tested it, but I'll work around it and see what i can do. Many thanks!