一、JavaScript
有个在线调试正则的工具,点击查看工具。下面的所有示例代码,都可以在codepen上查看到。
1.创建正则表达式
var re = /ab+c/; //方式一 正则表达式字面量 var re = new RegExp("ab+c"); //方式二 RegExp对象的构造函
1)正则表达式字面量在脚本加载后编译。若你的正则表达式是常量,使用这种方式可以获得更好的性能。
2)使用构造函数,提供了对正则表达式运行时的编译。当你知道正则表达式的模式会发生改变, 或者你事先并不了解它的模式或者是从其他地方(比如用户的输入),得到的代码这时比较适合用构造函数的方式。
\ ^ $ * + ? . (x) (?:x) x(?=y) x(?!y) x|y {n} {n,m} [xyz] [^xyz] [\b] \b \B \cX \d \D \f \n \r \s \S \t \v \w \W \n \0 \xhh \uhhhh
3.正则表达式中的方法
有个,分别是exec、test、match、search、replace和split。
exec和test的语法都是regexObj调用,match、search、replace和split的语法都是string调用。
exec:
方法为指定的一段字符串执行搜索匹配操作。它的返回值是一个数组或者 null。语法如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn8AAAAqCAIAAABN8KrBAAADtUlEQVR4nO3cPZLaMACA0VwQGiZ38NBwBmZoyAkoaDgBDQ2TnoqCC9BtwylIYbAl/y6ZWCa7L/OKZBGOcbEfkgU/7vf7/X7/+et36PpxAwD+iXvtzw/1BYBBqS8ApKa+AJCa+gJAauoLAKmpLwCkpr4AkJr6AkBq6gsAqakvAKSmvgCQmvoCQGrqCwCpqS8ApKa+AJCa+gJAat+nvpfNfLY89AyYTNf78U/1dv24Xc+7bL47DXIdFpvz2K8O4Hv7kvXNOzqbTGeTMmDH5bS7OpfNPBw/ruNy2v1eIbJfzbLt5bMHP6zf6E0GwLf09ep7XE7LFO1Xs8nqeP24Xc+77P9Jzms17Z/WV522i8dlAWAMg9X3sXB6XOZz0HDeed5ljx/GjTmsJ8+f947fr4J5aj5gdbyGuS2OmQ87rCfz3X67eBy/MuZx/E/leb+qTazPu6xybsGhGsbXXm90HVreKJyKky/Pv7i8tevWcf0fT7T+DDCawep7WE/mi+z5K76czB3WQQmCBoTLoWF+2saXfw8mu+ddVonKs76PdOX9C4edd1lZsv4ghXWPSl8cMz6H1vHR64o0T0w7losba912/YMX8sr0GoB/aaj65rUrlkOfv+vjNdIyVNFtztN28Zwmto2/XT9u18M62x4386AixUw3PI1iTtx9D7he7gbxE+PsnbaLyXy9DM+nfXx7/C7RKyq01ze4XL3Xv+dZAKQxZH3rv9yDNeTqMmllqba8Wds0/qEaqtqssRhQ2cTUVN9auRtUz6dySrV9W63jO+7Utj5UrDxXHm0MeX9cP/N6ARjGQPV9cQIXluC8y4rAdO3OvWzms8nquF+V/avWt3h6ZW22KTyf24jUtTqdHyG+8dw2vuX69DxUXJ9q8mu17juIjVcAoxqovi3VaVvdLeuY7xIK58St9XrE47BuvplaqXhj3QNNM8j8ZKL8V3d1Fco3CtE8u238abvoWknu6GL1Lm9jaPvvYbvvCzCiYerb8fGelo3Nz43Bi82hNk+tjM+Xc6ObuGVIgo3B0R3i9uXrXOMMsqG+0YeJp8E7gLDo0T+bxldPtW/Pc/f51/ds93+8yp5ngDENtuf5b42zG+jNPg089MTUsjPAuN6ivqft4jlTjCayQ/+nzwIF69jv4rXvunqN77oCGNtb1Lf1+zeGFXxVxXul93lNfM8zwBf1HvUFgO9EfQEgNfUFgNTUFwBSU18ASE19ASA19QWA1NQXAFJTXwBITX0BIDX1BYDU1BcAUqvX9w9KpqEVmi/90gAAAABJRU5ErkJggg==" alt="" />
示例代码:
var re = /quick\s(brown).+?(jumps)/ig;
var result = re.exec('The Quick Brown Fox Jumps Over The Lazy Dog');
返回结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnoAAAB1CAIAAABWAdunAAAO1ElEQVR4nO3dS48dxRnG8fpGtZlPM1KtvPMn8AbhjaXUwjuEWIBXXiVRqCSaABaIhHsMw7UcyAgwhAmRRSwIsrkEwptFdVVXV1/OZbrOzDnn/9PIGvf07dQ56mfeqp4uJQAAoDJ13icAAMDuI24BAKiOuAUAoDriFgCA6jpx+9ZHX1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t0VmV1m8rZod+HmiNqseNDrUV1O/BeuKxcXtNG47ZdONjtTNwC+2IybsfyKTG9/kxTFIgyXNxIGC3OStKxq2de3ep+3A6NHxst1jX/yipxK/FAY9Xt9CW+H7fNJhNxGw+R92MPHiQtb8duffsrxeCrO2Pcdj4bwy+4jVtvxeUle/ymPe20K7fUb1dh7Hawuj3zmO6m4ra8BapY2izOlhK6wO4yWTGUhgNNGirLxt5GR++6pYbJBildXiFl19+2AovDouGbgfIxv21Yi88217Zcpw1y0/Ynp0P0R5E7mxedokNjt2EPEwmUJ0HeDtbG8WMtRovS4rOGDZukDu3RKBoaR+/cT9R9swYaqr9Lmx1xqKGKbvb+6y3K3/agut1VWYy68bwcujO5GLt1rvsRWkf9PwSa789yASDjRc/7ByHbxS1Kyp70m82+sZMDB8toM379Px8nbgEAqO5CPeYCAIDdRNwCAFAdcQsAQHXELQAA1RG3AABUR9wCAFDd/wG4JV7FcVlslAAAAABJRU5ErkJggg==" alt="" />
test:
一个在字符串中测试是否匹配的RegExp方法,它返回true或false。语法如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAngAAAApCAIAAAApuMMWAAADoElEQVR4nO3cMW7iTBiA4b0gNOi/A6LhDEg07AkoaDgBjRv091QUXICOhlNkC7A9NjN2Ihic7D7SU0TEGMcFbz574NfHx8d/v/8PnS9XAOAlfgktAOQjtACQkdACQEZCCwAZCS0AZCS0AJCR0AJARkILABkJLQBkJLQAkJHQAkBGQgsAGQktAGQktACQkdACQEZCCwAZ/ZWhPa1nk0XRs8FovNoNf6jX8+V6Pm6ns+0hy3mYr49D/3UA/7afHtpbMiej8WRUt2q/GHcH5rSehdsn7ZaT6eb0/HF27me/GHf/W/DEIRWrb/T/BMA/6UeHdr8Y19XZLSej5f58uZ6P2+mL6vKG0H7xJXqH9bbDZn4/LQAM4RWhvV/53C9uk2U4TR630/uDzZwUq1H5eO/2u2Uwfd42WO7PYVmrfd42K1aj2Xa3md/339rmvv+eEh+qp1eC/eyWj2P0tTFel0Nq935S/xM0nnXfvjq9D+et4/zfn+gCMsBgXhHaYjWazaflu3k9ohWr4E0/eLsPr2eGpUltX/8cjLDH7bTVjzK090rdEhhudtxO62h9qj3RcTMMfPhzx+yYGlvjT+m43hsNc+r89706AG/wgtDewlZdzyzf1psXOevgNW5JHjbzcihMbX89X67nYjXd7NezIBjV/BoeRjXpdt+vfYx0QixRzR0G5Tts5qlAJlJ3avxFlXRog9PVe/57ngXAe7wotI/v48FF4PZ1zqAizRurse3v2k16mAWrDVpri2KhfYh0SiSQ7eNsHOoher26M7TRG67Vflq/je6nv6Of/nsBeLnnQ/vFsSx80z9up1VLutbHntazyWi53y2bSWvffF3tLg8XV2ON+fz6oP6JtvOAO/eTPnWV9uQdDXPfTqyHAhjU86FNhCd1ebYO4W3xTjjpRgMWRKtY1cEIb+i2gh0NeSCRz8gKqeiw2F6EFdNqW2ro7Elg+45stKn94XePFmBAT4e247M0iaXF5ZLd+bp4mD5b29+u0zZuuNbNCJbmNu7mpq8/30TnwnhoGwuJ6yI2VheXjzcfbGc1up/Y2es+/sdV0/2fZbLqGGBIQ36OdphFOq/7lO1L5B43XTcGGNa7Q3vYzMtpsjGe5n7Rxtz5vcLztW+G+hrfDAUwtLdPtKmvsMgr+LaH71XZ8pz4rmOAv9SP/gpGAPjuhBYAMhJaAMhIaAEgI6EFgIyEFgAyEloAyEhoASAjoQWAjIQWADISWgDI6A8tuaY0UtH/oAAAAABJRU5ErkJggg==" alt="" />
一个在字符串中执行查找匹配的RegExp方法,它返回一个数组或者在未匹配到时返回null。
与exec略有不同,首先是调用方式,math是由字符串调用,而exec是由RegexObj调用。
其次,如果表达式中有“g”标记,那么返回一个匹配的字符串数组,如果没有就会和exec返回的一样。下面这个demo就是有“g”。语法如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnsAAAApCAIAAADCj3gVAAADb0lEQVR4nO3cMZLaOhgH8FzQNJ7cgaHxGZhxwzsBBQ0noHHDpKei4ALbpX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BxASAHiQsAOUhcAMhB4gJADhIXAHKQuACQg8QFgBwkLgDk0CXuf72dM/8fZ7SrAAAAAElFTkSuQmCC" alt="" />
示例代码:
var re = /quick\s(brown).+?(jumps)/ig;
var result = 'The Quick Brown Fox Jumps Over The Lazy Dog'.match(re);
返回结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ4AAAAXCAIAAAB1WGE8AAACOUlEQVRoge1aya3jMAxlR6yIBbEbFjJHAb+cNwftsiTbyRcGI+idAllczMctQejnYFMQDjbFoXZbHGq3xaF2Wxxqt8WQWmUQgQjEcM0zE4hBCLbYu4NRqB2YAkGsfdEptdJ94sACp5BD7Grch1p+k1pTOEC1vkqgaRErD/1THnrX6J+k6JcoTXTa1DM4zUr0MxU1rqG+4FepbZBzyoGfCHRUQOaEFRfkMxNvfHD61aBZ5eHA2kJqTXIgTGAWytdpTn9pajoOiuCUD6s/7JosBosBMBCBBCYgColVdo5wLiACx3OWoKRfT5HazKtVfcLrVxs7GRGovcRBYktg3xgsO5kUprd4POxWUquS25enOZF9fZRUVxccRKcTpazaIl3S/WvnEImfHdQAB/aCNrDSZE9hyCRkg3+F26JMF5o4eD3+MJ14Z5xCXXT1HRZXrU89dYGzW2rb6DgIT+dTQW3SUyqp8iZGzQzMMAtRCxrG1FZVW86IQuTJl4JX1KYO4U1YXcQPsHjWklTtNEefb6oWFuIYSm20v5RVSx1qr1XrFCwwBReNwVucU5swrNq7JetKrReZUBtMWExue74trqQWKdfiO6dFkePqK1SPkDjGvAHlXPTdNbtcX8UKcarSpTqJ3ZhrE+3Ur8WrttGdtV7DhN1il2ziIHHeS1wRQtxSmRZD4fGC/Sm1r74LmLzqJLshxespK1aQ+h7f/GRx8L/jULstDrXb4lC7Lehf/4PnYBVO1W4L+nOwKf4C+L5zk7Ypo0sAAAAASUVORK5CYII=" alt="" />
一个在字符串中测试匹配的String方法,它返回匹配到的位置索引,或者在失败时返回-1。语法如下:
aaarticlea/png;base64,iVBORw0KGgoA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IeeDBX8Bin6rc4HTT0PxJOhAOYmaB/wyLOOc4+w+JjxaWHPOgaYn6AFgIIELQAUJGgBoCBBCwAFCVoAKEjQAkBBghYAChK0AFCQoAWAggQtABQkaAGgIEELAAUJWgAo6D+2cbbeDUbdVgAAAABJRU5ErkJggg==" alt="" />
例如上面的示例代码如果是调用search,返回数据就是4。
一个在字符串中执行查找匹配的String方法,并且使用替换字符串替换掉匹配到的子字符串。语法如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnsAAAAjCAIAAABjFFtzAAAM7ElEQVR4nO2cz2vqTBfH338wgSS8DkiglSKIBEsJBSlXQQQFW0gXblzoIpssdJGFWcSXZtGAFQxIIJUSCNlkk7/ivov8Tibe/lDb5z7n4bO6T53MnDkz3zlnTvKf379//3f0vzSO5wMAAAAAcBR+R//9BxQXAAAAAE4HKC4AAAAAnANQXAAAAAA4B6C4AAAAAHAOQHEBAAAA4ByA4gIAAADAOQDFBQAAAIBzAIoLAAAAAOcAFBcAAAAAzgEoLgAAAACcA1BcAAAAADgHoLj/MswF11psv70bQAnqiBlq398NAABOwb9LcbcST5AMQTLESD/hU+ReV9q/ffdg8RxBcTcPqD4xvnsg34Qld4je6nSTe0Bxd+r4hkUEyRBkW3o9w2D3Eo+or3iLJoTLjeRF84udsZdCu0ozBMkQvLzzfMfbz5pMXz3FwPVh2O3MXOzmnVtpf3qzA38zZ1NcVx7U+or37QN2At09meJamlBlBdX+/mHi+brivi448n75kZ88T5sN0fz+sZfaRHtsNyvBbk6yD/qhP1ZHqCHitt3SRj7m+aWKa0hXND8zTrCC7FWfvZfd4v/aiy1E/VJ2n25ZE4gjJVTWYpNqSet0J91V9whCfoC92MrOha0P2dpQc0/2RODv52yKqw/p69kJl8cHOKHiuvqQrR3esr+Zryvuh7dRW2ydKBY5Bq/KLV3ryu/MSRR24T838jHPL1PcJ4GtCJuTWEATqKZ0kouGoynu5gEVTkL6uEIL6im6HYKba0O8ogfyjz1PAz+eIyvuWr6PE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lCquLQ/Y3Nm0DFzZ1KdJl039kZL3cVE2aQQAHwEU98h85ZtTT+Pe5MV1wrQ85qLxHeAuDtP8aMXdiy1UqXce1dIQ8K+noLj7eY+tnujbF6cGq7iaQNC1m4Gcz75gMZUu+uLxa/P4S3y2fcfz1mL0UsC7gG9OAccHFPcUT//k91d36jhIwKaSlh/ElBqH46EfrbhAWnHdeZshaJYbrP6p8/WV7yrbym2QNFa++CljO/4cSpUfL9/1PerS7yrfwHeVga/xdyouAAAAAPw0QHEBAAAA4ByA4gIAAADAOQDFBQAAAIBzAIoLAAAAAOcAFBcAAAAAzgEoLgAAAACcA1BcAAAAADgHoLgAAAAAcA5ixf0/EJmJS7+vL2EAAAAASUVORK5CYII=" alt="" />
var re = /(\w+)\s(\w+)/;
var str = "John Smith";
var result = str.replace(re, "$2, $1");
返回的结果将是:“Smith, John”
一个使用正则表达式或者一个固定字符串分隔一个字符串,并将分隔后的子字符串存储到数组中的String方法。语法如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnsAAAAmCAIAAAAz2crAAAAH/ElEQVR4nO3cT2vqSgMG8PsFE0jC64AIWopQRFJKKEg5FaQQwQq5Czcu6iKbLOwiC7PQl2ZxAx5BQQIqIoRsssmnOO8i5p9JepWmOe15n/JbaZrMTMI8mcmYv379+vWf3n+jLMcFAACAXPzy//5C4gIAAHweJC4AAEARkLgAAABFQOICAAAUAYkLAABQBCQuAABAEZC4AAAARUDiAgAAFAGJCwAAUAQkLgAAQBGQuAAAAEVA4gIAABQBiQsAAFAEJC4AAEAR/tDENV+bNEfRHEVL09NvV8MaYX7MNufv7bDot6TJIfxk2vN2zlH86/K3V/bT5FTN3ajBPU1Tvtrrgyp71dWd886peseSprL71y2XipBa7LA6PSPc3l70eWl6OKMAAAAfU1ji2qp49aSd17fmxXxtnpm4W/WhMkhs6dnJ/GlHP+1x53T9v1UODZ5PNe1ZmxZkM+WrvS6V2frfxtlnkyUP6uHcaupS6o3CUhFiieu4S0Vg/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CIgcQEAAIqAxAUAACgCEhcAAKAISFwAAIAiIHEBAACKgMQFAAAoQpC4/wO3DzHF1/YgBwAAAABJRU5ErkJggg==" alt="" />
limit就是限制分割后的数组中的个数。下面的是一个demo,但是表达式中有一个是加了括号,一个没加,返回的数据是不一样的。
示例代码:
var re = /(\d)/;
var result = 'Hello 1 word. Sentence number 2.'.split(re);
console.log(result);
var re = /\d/;
var result = 'Hello 1 word. Sentence number 2.'.split(re);
console.log(result);
返回结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAAqCAIAAAC2veCqAAAE7klEQVR4nO2cXXLkIAyEuZFOpANxGx2Gqj2O9gGD+bUhY3tw0t/DVtZDQGAagSdu8w8AsDBGAQALA4kCsDSQKABLA4kCsDSQKABLU0rUkhqjxqghdcVnwsqibFSeik6dEqlYJTv6G6dBTvdiPgZwF6+YD90CwkFcMxpqSZR7DbM6qzwjUGfLWOzMRBdW65Tr1aLb3lmQ872YjgHcxivmw1kBZ2+SqFh1icA4LAV+ZbB1OE4pXy58yYlc5NRKQ+QHFEFu1SQ1NAtcG8Noxba1UenAYe3tLJ/t+p/b7Axg6eNtyBXzIY6kn7HXz4fzIG+TaImEhccp9X9BOI/FKT+7XeTJXcWTWB6SqF+VPTwsUUuL9frxW98IwYaRlC8eW74o0ZA2084fSzQefG+dTGUMF+K7zMpGDW0/q2yd8uPg+2hFKZ7vpX/cbzZSb8PyobakxNsVPwVjroj3Ih6DJATAnKXlrEDVRElVQ0ySbJRlm4bGKJEaoyyqTjkPsu5FOVA34ELT31svHpSoyXdfMSdkG8u+RPeZd5iHP+dGiYaF2Sc6v2uKh5CY/Yo9bcxvg1lUo37CKJVD7ZSC+KOYs14n1/2mzj8j2auKWUXy6/0Nc1lDvLOyCZI4XIxXaCtJnQkztfn/hPGRv4HvZdH9vJQcTQ8kmn5065DdKlHfI8vKVq3Nl+cwRPv+SlWTzep0r2XPVNlQF/LwPya9jjkt6jx+6mMoImw0UceS1zAi0TgyfhWrm6jDuAPu9OgpvifR5oS7NIs6S2bqeXI7hvwzQ5/eLya1sv2rnSyaSTQUGHwyucffG+oziabXi0/LLKoqeRY9jaqQ6HZbDyTanzCTEv3JfIhfrkhnb/D5fDjjKYk2nuiGo8XWfvJfP477t0Jhak6fRZ2187fkIBWoqthPb8m2y+X9UUR9Fs0OdbEAKdmB3Z1UCS0f6u0U57JnY1vmrI6aZEOFvJUp4mw20Q4pr4GTw6e14bBKyqSG1NUVtnox+cx/bj6k30v2WpmdD2zmvoa8RqIzzzIexFm6eoUT/klaBkvwvvlwzZ8uAACWAhIFYGkgUQCWBhIFYGkgUQCWxnzbPAkAcASyKABLA4kCsDSQKABLA4kCsDSQKABL8/fsxcBjLO/c9Qr+mr0YeIwXOHe9gj9gL3YJ4+8cpe9Pj7+IcUfMP0cumOlvcO56Bb/dXuwyqrei2ySjMfGC8jfdrtrca1VxF5BoynvsxdJgoikWhdegsxjCm8pbScmCHMyi9Tbs2NorzbpNa6/aPawe6tIcLKesISTJ+DY5h8cP0dpL+NB/rDVQCwCJprzHXiyFeffs8LumOoZsT1v5bp3jcjmdWntptXKduYeVBmVVE42Q8hoKW5NoHCHJlVjSq7puYt5w4G4g0ZT32IulCKuIEqnIPimLGFKv2tR5dXY6eiGdWnuplhI9dQ8r3HTrJkqqGkYkGg1WUtPNtIlxU9+ngERT3mMvllehxCpWKTjfNbJoLtHo4jd4Fk3XoCL/xOvHEj11D9ttrGXbdp7E1pco04lEe73QWYmu6Nz1Cn67vVhVw7bLjYJsnEXzkHwBf3aVgd3d/s3ysLWXhvEcdQ+TwyY6IaU1pFbUZJXNdljlcLasK2z0YvI5wnrOXa/gb9uLgcdY0rnrFeAPAAFYGkgUgKWBRAFYGkgUgKWBdxEAS/Mfvnys2H9hyVwAAAAASUVORK5CYII=" alt="" />
4.正则表达式执行返回信息
var myRe = new RegExp("d(b+)d", "g");
var myArray = myRe.exec("cdbbdbsbz");
console.log(myArray);
代码中返回的结果如下:
aaarticlea/png;base64,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SNna3pqEPrE0TVdjgiubSHmAmrrFbLh8csfS0UPjHVPlRRsXI40leH/55I52ljiE0q8jwRPvN+9zdXIJrllYeaYfXlxszx5bLrZJUAWEBpxogutzJ2IXypKFJRNKcG+zROx0EgledXMltkb6OfJek8rqicWuHOtmrfGOqfKi9d6G5f1GN10dCf7w4mJ74dzttEKifositEIt95uzu5S+C02AyrNjX5V+7aSpgPPQvHeCt2ck0xelbzrNt3FblY+oalvvgdeY4KFPKeVT1vsYk8+m8vTFnTv9E6t8NQY15vhs78JS9uRnGiGnQ86oWtoqr4YEz723TaJ/kxl6ERc296pq6KpZTWBVVaNq1pmMzr3/+Ofdi5/fk2siJLVwLELzappL3tx7gN6m8+4iequqSpZLFor1llOom3CWvWcz+rxrzo5mhZRIEq63oFMj3HHeGjrqMHqZWb1T/UUblD9BkhN87b+v7+uO/WVmLP7rsgCmw71/vzHfGfvLzCmVkuC/nN2XtbLZvW+s3I0sYQwJDqBxP78z32p3d+z743drE99XOjP/ZSsAQAEJDgBWkeAAYBUJDgBWkeAAYNWTBL95516z+rkEb7wyADD9+vTBAcCu/wPMNMme8cugYAAAAABJRU5ErkJggg==" alt="" />
var re = /\w+\s/g;//表达式一
var re = new RegExp("\\w+\\s", "g");//表达式二
var str = "fee fi fo fum";
var myArray = str.match(re);
console.log(myArray);
表达式一和表达式二返回的结果是一样的。都是下面的那个数组:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAASCAIAAAACO3FnAAABVUlEQVRYhe2X2ZECMQxElZEiUkDKRsEon96P8XpgDpCwWa+r/IoPChi57dZhCItJoNECFlGWVdOwrJqGC6uUQQQiEMMP35lADEKwXgIczDAFa/SJdg3pCHmR4Qgmv6f9Ts6NVXK3nsAV0s0omEAdck6KO9o15COkRaYjuPa1yhQOqJ5+HUiJG4VQg2vi2ZAGu2oILyOkRVpZMVRn77fZ26pLEfJxT+jFCA0m/UYA8HWrtvDbqzQTBz/nWu3EXTf2SsP2yedDJYDQcZg3tRZgQFWpFOml2G2fB4mGk+VcVd+vs8eq2seeg6MHd+DPrdrTjaD+lPLhiHlGW/X4viZrknFVVbDsPc2VKX21a7TKhFiz5ztbVdmxZddZVZetsyo6PFw1ZdVJw17K4bu1ac6qOpn29j5wViU32wlXzid4Iyb5Ou67fsNf4MX/ZFk1DcuqaVhWTcMPZgGrcp7TYYoAAAAASUVORK5CYII=" alt="" />
二、PHP
下面的示例代码可以在ideone中查看到。
1.创建正则表达式
$regex = '/\d/i';
与JavaScript中的第一个方式有点像,只是这里的话是个字符串。
2.正则表达式中的特殊字符
特殊字符有: . \ + * ? [ ^ ] $ ( ) { } = ! < > | : -
3.正则表达式中的函数
有个方法,preg_match与preg_match_all,preg_replace与preg_replace_callback,preg_grep、preg_split、preg_last_error和preg_quote。
执行一个正则表达式匹配
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0IAAABPCAIAAABJSuJgAAAcTElEQVR4nO2dz2vb2NrH7/+klVfZddVVdllldxbBYIgNg99iWszkTRfuwgFfkDEVeGIquB5cxA32wsUZg4ZgwhhswuiS5tVgrrA7Yoh6wEU4C70L/bAkS7KV2Enc+X7IprUtHZ3nPEdfPc9zjv5BAQAAAADAFvKPp24AAAAAAAC4D5BxAAAAAABbCWQcAAAAAMBWMpdx/wEAAAAAAM+VJTLOAAAAAAAAzw/IOAAAAACArQQyDgAAAABgK4GMAwAAAADYSiDjAAAAAAC2Esg4AAAAAICtBDIOAAAAAGArgYwDAAAAANhKIOMAAAAAALYSyDgAAAAAgK0EMg4AAAAAYCuBjAMAAAAA2Eog4wAAAAAAthLIOPCsUc7POqOnbgS4J0qn3FeeuhFg7dBhpz6kT90KYMDFgAEZ953w9bef3hR/+eupm7EBBiW20H/qRoB7IhWIMHjqRoC1ozZryab61K0ABlwMGOuVcWMxSdjs+e3mWvvdQ+VeXxrH/NG34ftX6XefvmykRZE8gsUh4zaGPjzbJRwnbfAUa7nH6MqwL0rRsR+ZS7E7pSv9oeeKxfB92uH98FF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vR9+e2gbAQAAAPDsgYx7PL58epu28Wqy4XvnA6+MC/9JEN9+K//wqtz7awNtBwAAAMCzY70yjsq9EV3+tb8rs29fbb7NQj4I/+TbCsVu374hDgcAAAD8XVivjAMAAAAAAI8EZBwAAAAAwFYCGQcAAAAAsJVAxgEAAAAAbCWQcQAAAAAAWwlkHAAAAADAVgIZBwAAAACwlUDGAQAAAABsJZBxAAAAAABbCWQcAAAAAMBWAhkHAAAAALCVQMYBAAAAAGwlkHEAAAAAAFsJZBwAAAAAwFayRMZ9/vxZ1/WnbiQAAAAAAPCg6/rNzU2UjPvzzz9vbm7+AwAAAAAAnhOfP3/+888/o2QcAAAAAADYIiDjAAAAAAC2Esg4AAAAAICt5P8BDxvSETrBVxIAAAAASUVORK5CYII=" alt="" />
返回 pattern 的匹配次数。 它的值将是0次(不匹配)或1次,因为preg_match()在第一次匹配后,将会停止搜索。
$subject = "dd133aa2";
$pattern = '/\d+/';
preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE);
print_r($matches);
上面的示例代码加了参数“PREG_OFFSET_CAPTURE”,这样的话,在$matches中会多一个偏移数。例如下面的“2”
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJsAAACICAIAAAB/QQ7uAAADEUlEQVR4nO3bW3KrMBBFUc1/Sh5c54NUygVS02DRVp/s/eVgXveuCDDB7fV6GQnVEBULUbU80dZa5q7QlBBVayi6cYJarguirbW/iaMX73O+v3V8TQ91bYwePbpTnJXA+XSeqK81mtJdnGN4Wn3R0agKiu4gDdHE5ovGl6Un6oieXte8j7zRwbk78+P/Gkq7ZwRnWo+L8oklOe7rqoWoWoiqdS7KKbBWJ6JwlgtRtfj7qFqIqoWoWoiqhahaXOuqhaha3DNSi/u6aiGqFqJqIapWnujp4yk8vzKlVNHjlMhD3vdWPmvmcn1NdPpjvfEFEZ20pYdFg8vKP91fTLQd8rcy2o3dQ+TvL/yJ3R+XugIoJnpjQ913d1scneP9PZy727NSE42MUUfrdGJ32XU4rZyof9QNHnJ3r4OiztBEdP/jlDEaWfC2qLOHS3Hav/o82r2W6Q7304lrnkG3uGf0UQvuLfd1b7bs7x+iaiGqFqJq1RZd8DT29QqLwtkNUbWqisI5ClG1EFULUbUQVauqqIE6CFG1CosaqL1qi9IxRNVCVC1E1ULUTOsZKETNFnhOcTTzaDecXy9EzdZ4ltgmfTUDUbOUb3DEUePTER02RbQd8rcS2RM7DFxn4u9biFrWt6wia2CMzilH9N4YdaYjOizhqMt5NLVFrnUjm+ZaN9Qin0ePGx3tBldGJ/n/R5EZ1glRtRBVC1G1EFULUTOujPQKfn7P//RyZ3OI2pX747PW78/zCSqiZg+P0eCyiM5siqh/X/d08XtzdpZF1FLGaHwNnEcnlCOawGmIbiUcdXM4DdGtp8doGqchujX69HJjnEVWPprNuaq6sDlEjXtGtHKIqoWoWoiqVU+0xOXJF6snaqC6IapWSVEDdRyiaiGqFqJqIapWSVE4nRBVq54onH71RMkPUbUQVQtRtRBVC1G1EFULUbUQVQtRtRBVC1G1EFULUbUQVQtRtRBVC1G1EFWrL8qzPHUbjlFQi4aoWt55FNSKIaoWomohqhaianGtqxaianHPSC3u66qFqFqIqvUDpMUqN6RLsGgAAAAASUVORK5CYII=" alt="" />
执行一个“全局”正则表达式匹配
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0EAAABQCAIAAABQ/ektAAAgAElEQVR4nO2dzWsi29b/n/+pRo4y61FGzjLKbA+CIETh4K+RNNI+6YE9MOCFHaQLvCm6+F0bm+IGHdiYI9QhiFxBCV3Pk5Zq5BTapzjELrApzGA/g3q3apel0SR2rw8OuuNLrdova39rr7X3/i8NAAAAAAAA2DX+66kNAAAAAAAAAFYGNBwAAAAAAMDuARoOAAAAAABg9/BouP8BAAAAAAAAnithGo4AAAAAAAAAzw/QcAAAAAAAALsHaDgAAAAAAIDdAzQcAAAAAADA7gEaDgAAAAAAYPcADQcAAAAAALB7gIYDAAAAAADYPUDDAQAAAAAA7B6g4QAAAAAAAHYP0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dSeOawu8AAAAASUVORK5CYII=" alt="" />
返回完整匹配次数(可能是0),或者如果发生错误返回FALSE。
下面的代码中$subject和$pattern与上面的都一样,唯一不同的是preg_match换成了preg_match_all。
preg_match_all($pattern, $subject, $matches, PREG_OFFSET_CAPTURE);
print_r($matches);
返回的次数是2,匹配到了两次,再看看数组$matches中的输入,有两个。比上面的多了一个。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOQAAAEbCAIAAABFhr+iAAAHLElEQVR4nO3dUZKqOhiFUec/pTOpOwPuQ1tWVwshYv7IxrWebA4gp/rrVEDR23///ffv378FTu8mVlLsxHq73WYeDTSIlRitWH9K1Ssn8Vqst9vtsXDrwe81f//T82N4ycsj63Nqq0saO1Eqx+zE2g5xa8nq5iYVvGkz1q2xsDPWP40uYuVtJbH2bwv91mPdPT36PV5uzRZWVy7/D3Fd817BUipvmhGry1UM4b0BxBArMcRKjK5YTTc5g/1YlcpJiJUY3s9KDLESQ6zEECsxxEoMVwOIIVZieAWLGN4bQAyxEkOsxBArMabGunt/ixtgaJgd6/OSns/ROLbzUStzEp+MdfjHC/RvKNZEl4q1c1ufDRMqL9bbk/azbB3Gn8/p+P2gvXD1R7PtCfJiPfBEq//65xm35tPtIxx72LRdMNaekbUR4u7C1W2VOkFerO1pQOcc4M/jzlgbA6pYJ8iLtX//u+u8FGvjCJU6x3ddZ109JVodpHcXmq3O5xWsd2UdbTTvDTgu8U8rmliJIVZiiJUY8bGaMn6P7FiV+lXESozgWJX6bcRKDLESQ6zEECsxgmNd9PplxEqM7FgXvX6T+Fj5HmIlhliJIVZiiPXukveHXYxY7z5+5+2bT/ENxHrX+SkBh0vq31CsW8R6Vx1r57aPzzQ4/CwXJta7IbE2PjWjZ/PlKdbHTn7vrbFw9cfLzLbFejdhZO3Zw/PIuhX97hGOPewzEOvdnFh7RtZGiLsLV7e9RqmLWB8mTAM65wB/HnfG2hhQxXo11SNrz4aHY20c4WVKXcT6sDUvHPK77yz1+ZRodZDeXXi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HENy5aC42QwAAAABJRU5ErkJggg==" alt="" />
如果subject是一个数组, preg_replace()返回一个数组, 其他情况下返回一个字符串。
如果匹配被查找到,替换后的subject被返回,其他情况下 返回没有改变的 subject。如果发生错误,返回 NULL。
在代码中$subject是一个数组,里面有两组字符串,接下来是将多个数字替换为大写的“Z”。
$subject = array("dd133aa2", "kk1ff3");
$pattern = '/\d+/';
$result = preg_replace($pattern, 'Z', $subject);
print_r($result);
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAABTCAIAAADcA0ggAAACYklEQVR4nO2cW7KDIBAF2f+Wsil34P1IVcoLM8OIQY+m+8saecUGBGNSlmVZluX1eq1wHQUNCqBBgr6GUsqZDfpN0CBBR8PbASZms1tDKeUT9A62Kben2mN4MzIa2otoRoJCcFDR1xBfYi9iZmeK84g0eP03qaG6+isafGZpyOeFNdDQvcFu+7g3d5mJp3+mG3LqLhoHHidpYJEawzMlCdAgARokyGpgWp9KSgMOZoMGCfi+QQI0SIAGCdAgARokYKUkARokYBctAc+UJECDBGiQAA0SnK2h+23ob35deoGGNpJ5I22s8G56822SqmF7u8VAxos1eK8wDY+GARNeZPilnoGMT9OwN2+g4XhjHq6hNMS1xCV4Ea/B3lR2ZF69pYaBiuJKg6q7LfzKR3imhu5gqo6TGj6RzIB4voZ4UsrMSNVxvhnxIDDPZrilhnz53TRJDUGyr/j40X1DO5gykWQwGKlue9hFK8AzJQnQIAEaJECDBNyiJbh+wWoG5y1YzcWx1ypz3Wl2lO5Kt9OqyzWYbR0eDUkTmVzF2oJlgmaaTpMu12AGj0xK3bx7qzOveCb7wzV0d6qZy1pNI1WkLcqsMWjGrp50Sw3DFVWnggOvnPxoQEN2NAQRryg0/Dt7ZDZoc+Unt0nd6JYa9pbvpelOSplZywzG6Y0SLtdw/P62K9e2unZIxbdfc/y1wWCkuq1iF60Az5QkQIMEaJAADRJk/2sPppL6H1aYDRok4OfpEqBBAjRIgAYJ0CABKyUJ0CABu2gJeKYkARokQIMEaJAADRKgQQI0SIAGCdAgARok+ANqrhjNntruWQAAAABJRU5ErkJggg==" alt="" />
执行一个正则表达式搜索并且使用一个“回调”进行替换
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0AAAABRCAIAAAB0Y1G2AAAb/ElEQVR4nO2dz2viWv/Hn/8pK1fdzaqr7rrqLgsRhLFwkSIzlEd6F3ZhwQsRaaBPwwiPg0P4Fl042CtkKCIjKGXypSO5yFfq3HCZzAGHYBfnu0iiUXNitI5tZt4vuplRc359zjnvnM/nnPMvAgAAAAAAQsW/njoDAAAAAABgNSDgAAAAAABCxlTA/S8AAAAAAHiuMAUcBQAAAAAAzw8IOAAAAACAkAEBBwAAAAAQMiDgAAAAAABCBgQcAAAAAEDIgIADAAAAAAgZEHAAAAAAACEDAg4AAAAAIGRAwAEAAAAAhAwIOAAAAACAkAEBBwAAAAAQMiDgAAAAAABCBgQcAAAAAEDIgIAD4OeBdOulLnnqXIDtgRYPNYPrq3r/qTMBKKWGWnqrhq4jQcABMGX8f+9PX7/5NH7qfKyLXpFiFf2pcwG2B1o81HRyQqb91JkAlNL7RizVCF1H+sECbnx3Fhf2RG0Dj3LTV6vNfujE8lqoGV7grL/QmBc7z/eN2OSjnDr7K6I1bzqbehntt89yN9qqv/ry/jRxdN79/qikf4zNE7WjdIfmsq9hOl8TtmXqFYlzPgo815qDblvxep/v5JxUeEm+30DGN9Di65Xd6Ldq6uBRCU8h3frZ5e3TGO69EuOF5PXXjT6UqEq7c7+0v25EwDGNzY0qilxUbm331bR7nphw3n3Eg8xOXuTiVXX5N9dmXsAtn3n1ihThi3VjpVQ2bGw/XMCJh8L+pbaBR7lpyxwvdzb80OfJg2kQYhC1eBEeAeeTZ5MYhBhEyS4KODWzwgS5jDUs5Hv3/Chx+v7LY5P+MTavV6QlBmAMlGI5FhUiUSl9eaOuNKx4Y5qs4X68fGYKG2zLHI+IQYjRTq9gn7qcErx11YgQgxC1zj9ewG2sxdcq+0YH4eXm/eO4v3kZFV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alt="" />
这个函数的行为除了可以指定一个callback替代replacement进行替换 字符串的计算,其他方面等同于 preg_replace(),包括返回的结果。
下面的代码也是替换成大写的“Z”,回调函数中每次$matches中的内容就是代码中注释的部分,第一次是133,第二次是2。
$subject = "dd133aa2";
$pattern = '/\d+/';
$result = preg_replace_callback($pattern, function($matches) {
//$matches [0] => 133
//$matches [0] => 2
return 'Z';
}, $subject);
print_r($result);
返回匹配模式的数组条目
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0AAAAA7CAIAAADdDH2KAAASlUlEQVR4nO3dzWvbysIG8Ps/aeVVdl11lV1W2WkRDIbacDAltJialBd34YAvKIQKfCNquC4u4gR74eIegw/BhGNwCNUlMSrmCDsVlyoDLsJZzLvQhyVbH1bsNFbu8yObNJU90kijRzMj6R8EAAAAAGLlH49dAAAAAACIBgEOAAAAIGYQ4AAAAABiBgEOAAAAIGZmAe4/AAAAALCpfAMcBQAAAIDNgwAHAAAAEDMIcAAAAAAxgwAHAAAAEDMIcAAAAAAxgwAHAAAAEDMIcAAAAAAxgwAHAAAAEDMIcAAAAAAxgwAHAAAAEDMIcAAAAAAxgwAHAAAAEDMIcAAAAAAxgwAHsaO0jnrKYxcCAqGOHgS5aFUvyGOXAgA2AgLcUzX9+/O71x++Th+7HA9AKrBi/7ELAYFQRw9CrQvJuvrYpYiV//5RfPvh68/HLgbAA0CAe5puPr9Lv3x/8eubLb1/xDOphvSQ34FwsPn86uhX7B/R3Hx+m7a8/XyzwieNOkmWy375sbaiLfIPcD/OeeEZyzEs9yxbbQ1pv8QxrPEjiKMHLNIvF7XCfn798Oa3N8hw8AQhwD1BPy/ev0y/W+lcZNKnd1GX6PP8Vqb5QCfoO7XXPjwob7Hc7oFY7a6jK2Kq+/xB159i7+XDC66jh90/ZnyrdcHN57fpo+7t7e3t7e3Plap8dPZij3sVMcAtfYhpSqdSS+5xiT0hf3Imaa4/SjyfyLUklRCNKL0rhVI6IUQjRGqxMQhwk6vqQXmL5Zi9cr4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ENcNfX17quP3bxAAAAAMBF1/XBYOAd4L5//z4YDP4DAAAAAJvk+vr6+/fv3gEOAAAAAGIBAQ4AAAAgZhDgAAAAAGIGAQ4AAAAgZhDgAAAAAGIGAQ4AAAAgZv4fo8D4TbPvVoAAAAAASUVORK5CYII=" alt="" />
返回使用input中key做索引的数组。
下面的示例代码中,在$subject数组中我加了个“ddsdfd”,里面没有包含数字,在做匹配的时候,就把这个没数字的给过滤掉了。
而$result2打印出来的正好相反,是把过滤的打印出来了,但是key还是为2,并不是0。
$subject = array("dd133aa2", "kk1ff3", "ddsdfd");
$pattern = '/\d+/';
$result = preg_grep($pattern, $subject);
$result2 = preg_grep($pattern, $subject, PREG_GREP_INVERT);
print_r($result);
print_r($result2);
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAACOCAIAAABon6dfAAADnElEQVR4nO2dUZKrIBAAvf+VcilvkPfxqrZSMgwjmpg23V8WgUHTy4QQV5Z1Xdd1fTweT/luFlVRGKtaluWTJyQ9VIVhoOq/J219A7tVLcvyV9g7eK35+lJ7LHVmRlX7RoclSRA9TTBWlWvolYTNTadHyFT1xkFR1cbQU1XHeJeqelsp0lU1nBS8jpVengwrv/2abspHVyv0dIQPqXKCfhzXADGoCoOqMFRV+TFzOSVVevoGVIXB36swqAqDqjCoCoOqMDgDxKAqDK5WYHANEIOqMKgKg6owfFrV8Jd7f9rvcYGqtqRyV+hc8GH98C6rJGZ+b9bO893X8GJVp98uOGErKdm8j+Hx9GnvbXg3VXvb5qqSaGG5qoIg4f2gxeabCL2SXqhej+1wrOfJ26qa6CjvNOl6YlTtzZM/+llVaf5uVX/HlYFVv1KkqjwBVrLf5vh0VflgCl8dglRVjz+ss0tVMbNNVKvwo9+r2kEZDtMwXxXTWhItZHzOrlZQcA0Qg6owqAqDqjA4rcBw/WQ9LHzfZL031a7HrMzX3/EHd72q8JKmL7Joq9gqVNI22RSGLx3nelVh4ZErHLbd1V1P1VzzIyBVDb/qD5u/BglL2lBhj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Dx6Ceyo3k16pClaieOZ9IMZ1y+GTT4Wfhtu4cXU/4xfQ8dVw/3x8k47mcTgR8WTLijHGZpNW0SszYQN4vIaL7Inj0bBlGo708inudLBScUep4RQ+y/G2kdWkIo6XVqkJDzZCUtwNfn/1S/HPf563FX78aBU5x7OwnVmsrvzsGu6vD6824lAif0gvn3E873RczdhPjnTlKTab2aTL8TuIO+1FVSMXlMHb9BzHZrF54woazo/vH1/Ph9Kpy2ed0gOzjtfFWpeVfF45OLfthppUc6siel68F5/Pslzm7kvpl5elzgZtnduj4YhUrOwinBQ8w/8WotRwWrc4z3OiVJ3I9do+4nKvna53r0Cn8zo2RFLc3W7ObaIbY6ESz150jYPBidJpJH3rlAy0m+v+TcjzKreI28/FTXnUsi/janaeQkYpGXXP+TjiGyvzmujwSglSfvwwZvJpphxHOMpn/oT6/bvbOXe2LX4Dx5UqndGGulI2ActY3jnU2rd3LzckVcpkrctK69TiZh45VelYlvIpy1NqNgXvxef9iit3d5vigdPZHg1HZakn3wScF+pEIdHdZE9HYrGyv8i1Ehsydamh8Tl1yIJ2Mx4Hqov4v+dHlxMOzF63PLA1JNDhzwK54szHKEf8pMRHQMdDEqBKFgCA4EyVes188LQjlRxYO9uj4QAAAAAAAAAT0HAAAAAAAADbB2g4AAAAAACA7QM0HAAAAAAAwPYBGg4AAAAAAGD7AA0HAAAAAACwfYCGAwAAAAAA2D5AwwEAAAAAAGwfoOEAAAAAAAC2D9BwAAAAAAAA2wdoOAAAAAAAgO0DNBwAAAAAAMD2ARoOAAAAAABg+/DTcN++fdM07blbCAAAAAAAANjQNG04HHpquL///ns4HP4HAAAAAAAA2CS+ffv2999/e2o4AAAAAAAAYFsADQcAAAAAALB9gIYDAAAAAADYPkDDAQAAAAAAbB//AxPZRZSVBO1aAAAAAElFTkSuQmCC" alt="" />
返回一个使用 pattern 边界分隔 subject 后得到 的子串组成的数组。
下面代码中,我将$pattern中的表达式加了括号,为了在$result2中捕获到。
$subject = "dd133aa2cc";
$pattern = '/(\d+)/';
$result = preg_split($pattern, $subject);
$result2 = preg_split($pattern, $subject, null, PREG_SPLIT_DELIM_CAPTURE);
print_r($result);
print_r($result2);
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAADVCAIAAADSA+kZAAAE8klEQVR4nO2dW5KrIBQA3f+WZlOzA+/H3JpJicIBWlHs/rKQR9IBOSem4vL9/f319bVKH4seEfTIUPC4LMuVr+a56JEh5/FHoioj1HlcluW38Ojgs+bnqfR4JqrnY2phtyTTyXwS16LHvKOjkt3mc18lDj0ezaCgx42+VY+Z40jJ9Cv6h32PxV3ic5YdLf/dyqe/oUFcl89MLHG9xuOssc4n5tcMemTQI0PI49yXNoSyRyVG0COD3z8y6JFBjwx6ZNAjg/s1gx4ZzGcYzK8Z9MigRwY9MlzqsXiD4bl3IK72mJZEfmrQ1nmx/u49zoah17Ee8dvcDSo7e/hrOJPH2rav9rgk5EfJ93BUUsvzPDYMlB+UuaTM57E4nTfHL/WYX9eRRb05fqnHeP/FOpN4XAfFj+l0zm9coT7NZxDMrxn0yKBHBj0yuM8wDI57dgvPjnvO4BbxY7Fac/+XMc987G/bw/M85vPrYvN17yrcf11+nsfmgdJT8+TXu4WdHiPN8Sn5PI/5dR2UWDyo5Xkea/vP1JlnXTfPqUjnmZqb6ZzfuEJ9ms8gmF8z6JFBjwx6ZHCfYXhj3HMGr7t/fRJTeexs28P4vDA91ZNfF5tvejgqqeUWHpHrY7CH9ANjLinDPTZMqIZRzhvufyfD9+tItc3ZzLqOLOqq4YLcZZ+JlNf2X6wzybo+mlZnx4+7I/ZsMqv5DIX5NYMeGfTIoEeG0P+6SpHy/15LBD0y+P89DHpk0CODHhn0yOB+zaBHBvMZBvNrBj0y6JFBjwx6ZDAOZ9Ajg8/TZPB5mgw+T5PB52ky+DxNBp+nyeDzNBl8niaDz9NkML9m0CODHhl8/gyDz0Ni0COD3z8y6JFBjwx6ZNAjg/s1gx4ZzGcYzK8Z9MigRwY9Mvh/AAzj/y8l8lODts6L9XfvcTYMvY71iN/mblDZ2cNfw5k81rZ9tcclIT9Kvoejklqe57FhoPygzCVlPo/F6bw5fqnH/LqOLOrN8Us9xvsv1pnE4zoofkync37jCvVpPoNgfs2gRwY9MuiRwX2GYZ7/a65qlUZau+FX/EO9RfxYrNbc/1G1YgpQG5zPMx+r2h5VC77CnTqP87gkVDXPDBos3O/wcR6bB4pUeNF8bBslWOdFHvPr2utjoVpz/8WaM+zXPXOq2HmmZhr6PCx+zL+yqpd+K8yvGfTIoEcGPTK4zzC8Me45g9fdvz6JqTx2tu1hfF6YnurJr4vN172LSf91+RYeketjsIf0A2MuKcM9NkyohlHSOuyUHL9fR6ptzmbWdVBi8aCWu+wzkfLa/ot1JlnXR9Pq7PgxHTe/cYX6NJ9BML9m0CODHhn0yOA+wzA+Dm+LpSOdZ2rin9Zd4nAmGG6KwxHG59fpqZ63V2w7rcfadb0kREaJv542xntMT/W/vdoF3s+EHq+XuD7RY35dD5G4vny/Bnld/Jjfo5oxn2Ewv2bQI4MeGfTI4D7DcIs4/Mq45yTGe6Tix56G/YyPw9PyHh2jVN4iL7z4e7O0bX+G8zyPDQMdnUpXw/M8Zl59p8fidK6qHx30Jr/vyVRLO8ms68iiLpY0MH6/TstP3a9nW9efhZtpdXb8uDtizyazms9QmF8z6JFBjwx6ZAg9R1yK5OajKuPokcHnxTHokUGPDHpk0COD+zWDHhnMZxjMrxn0yKBHBj0y6JHhH03ubME8y19bAAAAAElFTkSuQmCC" alt="" />
返回最后一个PCRE正则执行产生的错误代码
preg_match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar');
$result = preg_last_error();//PREG_BACKTRACK_LIMIT_ERROR 调用回溯限制超出
print_r($result);
转义正则表达式字符
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0EAAAA4CAIAAAC0WmQaAAAPyklEQVR4nO3dz2viaAMH8P2fcvLU25x66q2n3p5DEYRRGGQoM5RK52APFlxIkQlIQ8OLg0PYogeLM4JLkb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bbzyU/2h/crs5+7szkvpJfT4tNu7QVpcTbQLgSzwnmO5LYyNXumJFUqsr3qGr+xK5fH2s5ezIwjua39mjpgI2uS2WuDzaisaf1wD41f4/E5znzBK3xiPKSr+/PZK1xrC1a98ZHtfKqkDve83nkqmYtYC61dFRKj68MNa9teAW/4nq10whyxkEvXnX4+jyF00zPc5DjRka+5R4sz9+p8Vu0PGHOvD+cxgO9pRjv3jIuMu6B9tSJH7dZ2D+H0GANr7Z0e4w3n6ZYLkOHmPnYAwEKt5jPvn+AHVSrR4QLnE55xVfsBVY7FoM/SXqknJd39/uvbt0eNcC3TOavFHS/3zHu/DPfP2UE8fGvbz1vhM595D6tt3gy3uActA0BAoc9wWjOVGHv6ZbeQ4KMlnxEsC8xM2pfiZvp85K1uqptELAd595XKcIyxu7ODN+9Prld4kaegLe54uQxnGzshDhpHYVhQ67EVjgwXUlN2WQ9//7b35uDzt6nDAQDgmYQ+w7FuIekMpKFU61wcixFnKfVJi8xMneqWM1BGp9pNW9jlIzv/I5OLEfjfelu1DMcYu79f7eNxwBZ30Ju2OmPll+cweLi3PYzGteuTcDwm/JEVTtVGZ64Jw7Bi/HdZ779e7eMFwH9Z+DOcOZBGsJ9Z6jWWxs3odbsLHHzcOH2dsAYK2WNljPH5Zx6DjF0G/6rK7cIK9HMI1OLwdKhwAIAV9F/IcAAAAAA/G2Q4AAAAgPBBhgMAAAAIH2Q4AAAAgPBBhgMAAAAIH2Q4AAAAgPBBhgMAAAAIH2Q4AAAAgPBBhgMAAAAIH2Q4AAAAgPBBhgMAAAAIH2Q4AAAAgPBBhgMAAAAIn2kZ7vr62jCMly4hAAAAAIwwDOPm5sY3w33//v3m5uYvAAAAAFgl19fX379/981wAAAAABAWyHAAAAAA4YMMBwAAABA+yHAAAAAA4YMMBwAAABA+/weBEc4jSsqkJAAAAABJRU5ErkJggg==" alt="" />
返回转义后的字符串。
下面的代码中,$subject中有两个需要转义的字符,“.”和“?”。
将$result打印出后是“dd\.a\?a2cc”,而在$result2中,多加了个参数“a”,这样的话“a”也会被转义,“dd\.\a\?\a2cc”
$subject = "dd.a?a2cc";
$result = preg_quote($subject);
$result2 = preg_quote($subject, 'a');
print_r($result);
print_r($result2);
4.模式修正符
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnoAAAEHCAIAAAC2nHzZAAAe/klEQVR4nO2dzWHrOtJtFU0HoDA6CkVwY3hDTToWJXJHCobT7w1syzCqamMDoo91zLUGNggWCoUiiU3oj6f/AwAAgG/m9NMBAAAA/H6QWwAAgG8HuQUAAPh23uX2/wEAAMA30Mvtv5BBZgAAYBnk1oXMAADAMsitC5kBAIBlkFsXMgMAAMsgty5kBgAAlkFuXcgMAAAss4Pcnk6n//znP4/y//73v9PpdDqdnFbRsq1x/Ogu2uZPekNu4cg8Lh9xWZ2+8pgKWn4meoAXYDe5jdeVvroeIu1fvZ3NsMd9r3zkFg7O46qJhc7g3+zOG7mFg/PDq9tY+c8//zzKzoVa7WpnhDak5WseuQXQILcAgqfk1lw+xnph+c8//3TSqK/SP3YNI7cA/xaXc7vrUebFZICWfVa3p7BwHF5a0eCt5iG3qWA7frTB8jWP3MJhebtqZt/9YXUL0PKs3LZCOHUnmxo85Pa///3v0DJqfNpL95I1cguwgC+3jzJyC9Cym9zqS0vf9rZmndxWl6ij8W+bCx/jSkFu4cg8I7fLFx3Ab+LZ927frqg3dRxeWkKPH5UPuW2dRGOxq4uN1S3A83Rym17pldzGvQAHZJ/3boev/aa7uob/1qtbodz6Gj6Fb/citwALPC6l7nP+7e1sp8HILUDLbnKb3vOeiiVpbPioSVe3aVtfbn17AXILR6a9HrXcxlbVXoBDsfPqNt7SdpadEkdNfXzvNraKlf/achsbzoLcwpFJr7hT8dtwXZN0E+Bo7L+6fVRGTR1ekw+5jcLc2Wta4/YnOEQYQ5BbAHE9CssnLz2A3wGPKHAhMwAAsAxy60JmAABgGeTWhcwAAMAyyK0LmQEAgGUSuQUAAIDd6eV2gwwyAwAAyyC3LmQGAACWQW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/>
参考资料:
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions 创建一个正则表达式
http://www.5idev.com/p-php_regular_syntax_2.shtml PHP 正则表达式语法
https://www.ibm.com/developerworks/cn/opensource/os-php-regex1/ 掌握 PHP 中的正则表达式
JavaScript与PHP中正则的更多相关文章
-
JS中正则匹配的三个方法match exec test的用法
javascript中正则匹配有3个方法,match,exec,test: match是字符串的一个方法,接收一个RegExp对象做为参数: match() 方法可在字符串内检索指定的值,或找到一个或 ...
-
Javascript模板及其中的数据逻辑分离思想(MVC)
#Javascript模板及其中的数据逻辑分离思想 ##需求描述 项目数据库的题目表描述了70-120道题目,并且是会变化的,要根据数据库中的数据描述,比如,选择还是填空题,是不是重点题,题目总分是多 ...
-
Javascript 将一个句子中的单词首字母转成大写
Javascript 将一个句子中的单词首字母转成大写 先上代码 function titleCase(str) { str = str.toLowerCase().split(" &quo ...
-
Python3中正则模块re.compile、re.match及re.search函数用法详解
Python3中正则模块re.compile.re.match及re.search函数用法 re模块 re.compile.re.match. re.search 正则匹配的时候,第一个字符是 r,表 ...
-
JavaScript从数组中删除指定值元素的方法
本文实例讲述了JavaScript从数组中删除指定值元素的方法.分享给大家供大家参考.具体分析如下: 下面的代码使用了两种方式删除数组的元素,第一种定义一个单独的函数,第二种为Array对象定义了一个 ...
-
大型 JavaScript 应用架构中的模式
原文:Patterns For Large-Scale JavaScript Application Architecture by @Addy Osmani 今天我们要讨论大型 JavaScript ...
-
细数Javascript技术栈中的四种依赖注入
作为面向对象编程中实现控制反转(Inversion of Control,下文称IoC)最常见的技术手段之一,依赖注入(Dependency Injection,下文称DI)可谓在OOP编程中大行其道 ...
-
[转]大型 JavaScript 应用架构中的模式
目录 1.我是谁,以及我为什么写这个主题 2.可以用140个字概述这篇文章吗? 3.究竟什么是“大型”JavaScript应用程序? 4.让我们回顾一下当前的架构 5.想得长远一些 6.头脑风暴 7. ...
-
JavaScript 在函数中使用Ajax获取的值作为函数的返回值
解决:JavaScript 在函数中使用Ajax获取的值作为函数的返回值,结果无法获取到返回值 原因:ajax默认使用异步方式,要将异步改为同步方式 案例:通过区域ID,获取该区域下所有的学校 var ...
随机推荐
-
Ajax中Get请求与Post请求的区别
Get请求和Post请求的区别 1.使用Get请求时,参数在URL中显示,而使用Post方式,则不会显示出来 2.使用Get请求发送数据量小,Post请求发送数据量大 例子 页面的HTML代码: &l ...
-
Java多线程——同步(一)
好习惯要坚持,这是我第二篇博文,任务略重,但是要坚持努力!!! 1.竞争条件 首先,我们回顾一下<Java核心技术卷>里讲到的多线程的"竞争条件".由于各线程访问数据的 ...
-
iOS开发问题之Could not instantiate class named NSLayoutConstraint
这个问题在ios6.0之前的版本中运行会出现,因为使用Xcode 4.5之后的版本新建项目默认是选中AutoLayout的,但这个特性是在iOS6.0之后的版本中才支持的. 解决办法是选中.stroy ...
-
字符编解码的故事–ASCII,ANSI,Unicode,Utf-8区别(转)
很久很久以前,有一群人,他们决定用8个可以开合的晶体管来组合成不同的状态,以表示世界上的万物.他们认为8个开关状态作为原子单位很好,于是他们把这称为”字节”. 再后来,他们又做了一些可以处理这些字节的 ...
-
1、Singleton 单件(创建模式)
一.Singleton模式主要应用在一些特殊的类,在整个系统运行中,有且仅有一个实例的场景 二.Singleton模式分为单线程与多线程情况,当然多线程一样适应单线程 单线程:在这种情况下比较容易,因 ...
-
Android 获取TextView 显示的字符串宽度
工作上有业务需要判断textview是否换行,我的做法是判断textview要显示的字符串的宽度是否超过我设定的宽度,若超过则会执行换行. 项目中的其他地方也有这样的需求,故直接使用了那一块的代码.如 ...
-
面试JS篇
1.闭包 ECMAScript对其进行了简单的描述:允许使用内部函数(即函数定义和函数表达式位于另一个函数的函数体内),而且,这些内部函数可以访问他们所在的外部函数中声明的所有局部变量.参数和声明的其 ...
-
windows下使用electron+sqlite3
1.前置条件 1.1:安装 python2.7.python 若是有问题,如果之前安装过多个版本,则必须 npm config set python "/path/python.exe&qu ...
-
MVC基本登陆与验证码功能实现
一.基本登陆实现与验证码功能实现,该功能是和spring.net功能集合使用的,因为后面要用到验证是否处于登陆状态 1. 先构建一个登陆页面 @{ Layout = null; } <!DOCT ...
-
Java实现简单计算器、抽票程序
计算器: import java.awt.BorderLayout; import java.awt.Container; import java.awt.Font; import java.awt. ...