I'm thinking that this is the place to post such topic, but if it isn't just move it to wherever it is appropriate, thx.
Ok, so I'm not all that good with regular expressions, but I get the basics. I want to match anything that is not a lower case letter, number or mathematical character (+,-,*,/,.,(,),^,E). Additionally, it should match any 2 letters following eachother, a letter followed by one or more numbers, and one or more numbers followed by a letter.
The expression I cooked up is the following:
Anyone with some regex knowledge care to shed any light on this? I can elaborate more on its purpose if necessary, but I believe that this should suffice.
Thx in advance,
VEH
Ok, so I'm not all that good with regular expressions, but I get the basics. I want to match anything that is not a lower case letter, number or mathematical character (+,-,*,/,.,(,),^,E). Additionally, it should match any 2 letters following eachother, a letter followed by one or more numbers, and one or more numbers followed by a letter.
The expression I cooked up is the following:
The error I'm getting however is:([^\^\-+\*/a-z0-9E\(\)\.])|([a-z]{2,})|([a-z][0-9]+)|([0-9]+[a-z])
Which leeds me to believe there's something wrong with the alternating |, but I cannot find my mistake.Warning: preg_match_all() [function.preg-match-all]: Unknown modifier '|' in F:\wamp\www\plot_processed.php on line 52
Anyone with some regex knowledge care to shed any light on this? I can elaborate more on its purpose if necessary, but I believe that this should suffice.
Thx in advance,
VEH