
July 3rd, 2012, 08:55 PM
|
|
Registered User
|
|
Join Date: Jul 2012
Posts: 2
Time spent in forums: 31 m 6 sec
Reputation Power: 0
|
|
|
Worked Out The Answer !
Quote: | Originally Posted by rssadiq Hi
I need a regular expression to find if a string contains all the characters of another string.
Can anyone help me with this please? |
HERE IS THE ANSWER:
REPEAT .*[a,b,c]{1} as many times as the number of characters in the 2nd string and replace [a,b,c] in the square bracket with all characters in the 2nd string too.
|