in reply to Re: check in an array for variable
in thread check in an array for variable

Hi, The output should print even the elements of the array in between the text. ex: output should print like this:
” How big are & the Brothers? ” Value missing “ One day hiere last week, not knowing the cause, some floors of Rockefe +ller Center were evacuated when the floor shaking and screams of the +lads ' fans during a TV

Replies are listed 'Best First'.
Re^3: check in an array for variable
by moritz (Cardinal) on Aug 13, 2009 at 10:52 UTC
    I'd suggest splitting on /(\s*&\w+;\s*)/, then iterate over the return list and insert a "Value missing" where appropriate. That'll be much easier and more maintainable than trying to write it one regex.