PHP实例如下:
int preg_match ( string pattern, string subject [, array matches [, int flags]])
在 subject 字符串中搜索与 pattern 给出的正则表达式相匹配的内容,如果提供了 matches,则其会被搜索的结果所填充,$matches[0] 将包含与整个模式匹配的文本,$matches[1] 将包含与第一个捕获的括号中的子模式所匹配的文本,以此类推.
代码如下:
- $string = 'cgjp123@163.com.cn';
- $pattren = "/^[^_][w]+@[w.]+[w]+[^_]$/";
- if(preg_match($pattren,$string,$matches)){
- echo '<pre>';
- print_r($matches);
- echo '</pre>';
- }else{
- echo 'wrong email';
- }
php中检查email完整性,代码如下:
- <?php
- if (eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]?$",?$email)) {
- echo "您的 e-mail 通过初步检查";
- }
- ?>
^([a-za-z0-9_-]+)@([a-za-z0-9_-]+)(.[a-za-z0-9_-])$/
就是记录邮件地址的用户名,和邮件地址的服务器地址(形式为username@server.com之类的),在后面如果想要读取记录下来的字符串,只是需要用”转义符+记录的次序”来读取,比如”1〃就相当于第一个”[a-za-z0-9_-]+”,”2〃相当于第二个([a-za-z0-9_-]+),”3〃就是第三个(.[a-za-z0-9_-]),但是在php中,”"是一个特殊的字符,需要转义,所以”"到了php的表达式中就应该写成”1〃.
其他特殊符号:
“|”:或符号”|”和php里面的或一样,不过是一个”|”,而不是php的两个”||”!意思就是可以是某个字符或者另一个字符串,比如”/abcd|dcba/”可能匹配”abcd”或者”dcba”.
波比源码 » php验证邮箱地址合法性
order levaquin levaquin 250mg for sale
order ampicillin 500mg generic order bactrim 480mg generic erythromycin 250mg pills
buy fildena 50mg generic purchase careprost pills robaxin canada
order isotretinoin 40mg online brand zithromax buy ivermectin 6mg for humans
provigil usa acetazolamide 250mg without prescription diamox 250 mg without prescription
order doxycycline 100mg order generic clomiphene 100mg generic furosemide
clonidine for sale buy minocycline 100mg online tiotropium bromide 9mcg generic
order revia 50mg for sale revia cost buy aripiprazole 30mg sale
order provigil 100mg pills purchase modafinil sale ivermectin 50mg/ml
buy accutane 20mg sale buy prednisone 40mg pills prednisone 5mg pill
zithromax 250mg canada order neurontin 800mg generic neurontin 800mg canada
cost furosemide 40mg plaquenil oral brand hydroxychloroquine 400mg
glycomet pills atorvastatin 10mg over the counter overnight cialis delivery
order sildenafil 50mg generic lisinopril buy online purchase lisinopril online cheap
prilosec tablet order omeprazole online cheap that roulette
metoprolol 50mg uk levitra 20mg canada buy vardenafil 10mg online cheap
order triamcinolone 10mg without prescription aristocort 4mg cheap desloratadine online
priligy 30mg generic synthroid price levothyroxine price
cialis otc cialis 40mg usa oral viagra
cialis 40mg price brand inderal 10mg clopidogrel 75mg uk
zyloprim online buy zyloprim canada buy zetia pills
order baclofen purchase toradol generic ketorolac generic
gloperba sale online roulette game free roulette online
tadalafil 10mg pills buy tadalafil 5mg without prescription viagra drug
order ceftin 500mg without prescription ceftin uk buy robaxin online cheap
buy fildena online cheap sildenafil 100mg sale purchase rhinocort generic
brand cialis 20mg slot machine games online slot games
buy ramipril pills buy arcoxia pills buy arcoxia online
doxycycline ca clindamycin brand order cleocin 300mg sale
best website for writing essays order arava 10mg buy sulfasalazine pill
acetazolamide 250 mg oral order isosorbide 20mg order imuran 50mg generic
lanoxin 250 mg sale buy micardis 80mg online molnupiravir 200mg tablet
carvedilol pills buy ditropan without prescription elavil 10mg pill
order pepcid generic order prograf pills remeron buy online
buy generic requip labetalol 100 mg generic buy trandate sale
tadacip 20mg pill buy generic clopidogrel 150mg trimox uk
order cialis pills sildenafil 50mg without prescription cheap sildenafil online
buy serophene online buy clomid 100mg prednisolone 5mg pill
fildena 50mg brand cost sildenafil buy propecia 5mg generic
ivermectin 3mg over the counter buy generic stromectol generic deltasone 40mg
ondansetron us bactrim 480mg oral trimethoprim brand
isotretinoin pills buy generic amoxil 250mg buy zithromax 500mg for sale
albuterol 2mg sale amoxiclav over the counter buy augmentin 625mg pill
buy modafinil 100mg pill buy metoprolol 50mg online buy lopressor 50mg pill
avodart oral buy cephalexin 500mg sale buy xenical 120mg online cheap
buy doxycycline generic buy doxycycline 200mg pill acyclovir cost
Если государь желает удержать в повиновении подданных, он не должен считаться с обвинениями в жестокости.
Учинив несколько расправ, он проявит больше милосердия, чем те, кто
из избытка своего милосердия потворствует беспорядку.
От беспорядка, который порождает грабежи и
убийства, страдает все население, тогда как от наказаний, налагаемых
государем, страдают только отдельные лица.
Как пробудить интерес у мужчины советы психолога
buy zocor 20mg without prescription sildenafil overnight delivery sildenafil 25mg price
buy avlosulfon 100 mg generic order atenolol for sale buy cheap atenolol
order alfuzosin sale order uroxatral 10mg generic buy diltiazem without prescription
sildenafil for sale sildenafil 25 mg purchase cialis online
zetia 10mg over the counter buy methotrexate 5mg pill order methotrexate sale
buy coumadin 2mg online buy coumadin for sale allopurinol pill
where to buy cenforce without a prescription cenforce pills buy glycomet online cheap
lexapro where to buy lexapro 10mg cost order generic naltrexone 50 mg
cheap tadalafil for sale generic cialis mens erection pills
cialis order online tadalafil express delivery cheap ed drugs
ivermectin 6mg online deltasone 40mg oral isotretinoin 40mg oral
purchase modafinil for sale provigil generic prednisone 5mg ca
buy ventolin inhalator for sale amoxiclav online buy buy cheap synthroid online
serophene uk cost clomiphene 50mg hydroxychloroquine canada
poip-nsk.ru
albendazole where to buy albenza 400 mg price provera 10mg canada
buy glycomet 500mg lipitor 80mg generic buy generic norvasc 5mg
lisinopril buy online where to buy prilosec without a prescription order lopressor generic
buy lyrica online purchase loratadine for sale priligy 30mg ca
order orlistat 120mg sale zovirax 800mg usa generic zyloprim
sumatriptan 50mg for sale purchase levofloxacin pills purchase avodart
order tetracycline 250mg pills order cyclobenzaprine without prescription buy cheap generic ozobax
clopidogrel 75mg price fluvoxamine 100mg for sale nizoral for sale online
order tamsulosin for sale order tamsulosin 0.2mg for sale spironolactone uk
betamethasone generic itraconazole 100 mg ca sporanox where to buy
buy combivent tablets buy combivent 100 mcg pill buy linezolid 600 mg without prescription
progesterone online order order tinidazole online cheap buy olanzapine 10mg pill
buy starlix generic capoten without prescription order candesartan generic
nebivolol online diovan online buy buy clozapine 50mg pills
zocor for sale valacyclovir 1000mg without prescription buy generic sildenafil 50mg
tegretol 400mg canada lincocin ca order lincocin 500mg without prescription
cialis pills tadalafil cost sildenafil 100mg uk
buy duricef pill proscar 1mg brand order proscar
diflucan 100mg for sale fluconazole over the counter order cipro 1000mg online cheap
buy indocin 75mg online indomethacin for sale online suprax price
buy nolvadex 20mg sale cefuroxime online buy order cefuroxime 250mg for sale
careprost drug buy generic trazodone 50mg desyrel 100mg pill
catapres 0.1 mg cost spiriva pills order spiriva 9 mcg online cheap
minocycline tablet buy actos 30mg pills purchase pioglitazone
leflunomide price order azulfidine 500 mg generic sulfasalazine 500mg generic
vardenafil 10mg usa vardenafil 20mg ca cost hydroxychloroquine 200mg
buy asacol order irbesartan 150mg pill irbesartan buy online
temovate cost cordarone 100mg for sale order cordarone 200mg sale
order carvedilol 25mg pills buy carvedilol 25mg without prescription buy aralen 250mg online cheap
buy acetazolamide 250 mg generic imuran 25mg ca order generic azathioprine
order baricitinib 4mg without prescription buy atorvastatin without a prescription lipitor 80mg sale
order montelukast 10mg online cheap singulair 5mg cheap buy dapsone generic
nifedipine online order aceon brand allegra 120mg canada
buy amlodipine 10mg generic lisinopril 5mg drug prilosec buy online
aristocort 10mg oral clarinex cost buy loratadine generic
crestor price ezetimibe us buy motilium pill
buy sumycin cheap buy baclofen 25mg online cheap purchase lioresal pill
buy ketorolac medication inderal 20mg sale buy inderal paypal
buy celebrex 100mg generic ondansetron price order ondansetron 8mg pills
buy spironolactone online cheap spironolactone valtrex 1000mg pill
order propecia 5mg without prescription viagra 100mg us order sildenafil 50mg pill
order tadalafil pill buy cialis canada viagra 100mg
movfor brand buy omnicef pills omnicef tablet
purchase prevacid online cheap buy lansoprazole sale pantoprazole 40mg over the counter
albenza 400mg price buy provera 10mg generic provera for sale
buy cheap furadantin macrodantin 100mg usa buy generic pamelor 25 mg
glucotrol 5mg tablet betnovate 20 gm cream purchase betamethasone
purchase anafranil generic order prometrium generic order progesterone 100mg generic
order tindamax 300mg for sale olanzapine medication bystolic pills
bupropion 150 mg usa cetirizine 5mg generic order strattera 25mg without prescription
buy generic ciprofloxacin over the counter order ciprofloxacin pill buy duricef without prescription
lamivudine drug zidovudine 300mg price buy accupril without prescription
oral valcivir 500mg order valcivir without prescription floxin 400mg for sale