![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help with Simple Regex | evilfreakz | Shell Programming and Scripting | 15 | 08-31-2008 09:07 PM |
| A simple find and replace without using any regex (bash) | srikanths | Shell Programming and Scripting | 2 | 03-18-2008 08:08 AM |
| Problem with grep Regex Error | lweegp | Shell Programming and Scripting | 6 | 11-16-2006 04:04 AM |
| gcc 3.4 Regex problem | manishs13 | SUN Solaris | 0 | 05-09-2005 04:58 AM |
| grep regex problem | iceman | Shell Programming and Scripting | 2 | 02-06-2005 12:44 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Simple regex problem?
Hi all,
I am looking to create words from a sentence which adhere to a custom search pattern from my website: Example: ![hello] +![bye] /[said] +=[from] ~[to] where the terms ! = not, +! = AND NOT, += - and equals and ~ = can be like.... Now here is the issue...i want to split a sentence like the one above on spaces, this is easily done in PHP with a simple split on " ". However this will not work if i have something like: ![hello] +![bye] /[said] +=[from] ~[to] my name as my name is not surrounded with any of the custom tags and has a space in it... so basically my output should be: ![hello] +![bye] /[said] +=[from] ~[to] my name Any help people? ![]() ![]() Last edited by muay_tb; 03-31-2009 at 12:07 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|