Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I have a regex expression
/\.(\/Directory_Files\/.+)"/
This looks for anything with the string: ./Directory_Files/"
The problem is it is only finding the first instance of this string within the information I am importing. I am trying to have it change all instances. If I had access to the global flag then it would look like this and everything would work fine:
/\.(\/Directory_Files\/.+)"/g
Comments
Comment #1
twistor CreditAttribution: twistor commentedPHP doesn't have the g modifier. We have to use preg_replace_all() instead.