SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: regex question...
Threaded View
-
Aug 31, 2001, 00:48 #1
- Join Date
- Apr 2000
- Location
- Los Angeles, California
- Posts
- 1,008
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
regex question...
Is there a way using eregi_replace to replace all charecters that are NOT included in a set with something else.
For example, is there a way to replace all charecters in $var that are NOT [a-zA-Z0-9_\x7f-\xff] with "_"
So something like eregi_replace(![a-zA-Z0-9_\x7f-\xff], "_", $string) ...
Bookmarks