Category : regex

there is a string like "{three / fifteen / one hundred} this is the first random number, and this is the second, {two / four}" from the brackets you need to return a random value for example "One hundred is the first random number, and this is the second, two" function RandElement($str) { preg_match_all(‘/{([^}]+)}/’, $str, ..

Read more

hello guys I want to count the number of common words in a string but it shd be multi language For example: English: New World Library 14 Pamaron Way Novato, CA 94949 Revised Edition ©1998 Shakti Gawain and Laurel King Original Edition ©1986 Shakti Gawain and Laurel King Cover Art: Nicholas Wilton Cover Design: Michele ..

Read more