Knowledge (XXG)

:AutoWikiBrowser/Regular expression - Knowledge (XXG)

Source 📝

3361: 195: 3382:
Efficiency is how long the regex engine takes to find matches, which is a function of how many characters the engine has to read, including backtracking. Complex regular expressions can often be constructed in several different ways, all with the same outputs but with greatly varying efficiency. If
2838:
Regex offers several options to change the default behavior. Five of these options can be controlled with inline expressions, as described below. Four of these options can also be applied to the entire search pattern with check boxes in the AWB "Find-and-replace" tools. By default, all options are
1438:
Used to check what comes before or after, without consuming or capturing. ("Without consuming" means that matches for look-around assertions do not become part of the string to be replaced. In the following examples, only "abc" is consumed.) In .NET regex, all regex syntax can be used within a
3015:
turns the options given by "flags" on (or off, for any flags preceded by a minus sign) from the point where the statement appears to the end of the pattern, or to the point where a given option is cancelled by another options statement. For example:
1084:
By default, quantifiers are "greedy", meaning they will match as many characters as possible while still allowing the full expression to find a match. Adding a question mark ("?") after a qualifier will make it non-greedy, meaning it will match as
302:
is a sequence of characters that define a pattern to be searched for in a text. Each occurrence of the pattern may then be automatically replaced with another string, which may include parts of the identified pattern. AutoWikiBrowser uses the
3152:
followed by a set of lowercase characters that you can easily remember is best (lowercase is used so that you do not have to use the shift key). You can then enter these short-cut macros keys you create into the page manually or by using the
1835:, which specifies a number (or range of numbers) of tokens. If the portion of the regular expression is "greedy", it will match as many characters as possible. If it is not greedy, it will match as few characters as possible. 3142:. Right click on the edit box and select Re-parse from the context pop up menu. AWB will then re-examine your page with your macro short-cut key(s), find your short-cut key(s) and perform the action you specified in the rule. 1831:, in regular expression context, describes the number of characters which will be matched (often also stated as "consumed") by a variable length portion of a regular expression – a token or group followed by a 3148:
Naming a short-cut macro key can be any name. But it is best to try and make it unique so that it will not interfere with any other process that AWB may find and suggest. For that reason using
845:
Groups match a string of characters (including tokens) in sequence. By default, matches to groups are captured for later reference. Groups may be nested within other groups.
1101:
Metacharacters are characters with special meaning in regex; to match these characters literally, they must be "escaped" by being preceded with with the escape character \.
214: 154: 3390:
Using the "advanced settings" find-and-replace tool, enter expressions on the "If" tab to filter the pages that an expensive find-and-replace rule is applied to.
3127: 251: 247: 139: 2965:
Causes whitespace characters (spaces, tabs, and newlines) in the pattern to be ignored, so that they can be used to keep the pattern visually organized.
1726:
is formed by enclosing tokens or other groups within parentheses. All of these can be modified to match a number of times by a quantifier. For example:
259: 69: 3154: 243: 90: 34: 117: 3036:#Turn ON IgnoreCase (i) and MultiLine (m) options, and turn OFF SingleLine (s) option, from here to the end of the pattern or until cancelled 134: 3409: 169: 149: 129: 2979:
To match whitespace characters while the IgnorePatternWhitespace option is enabled, they must be identified with character classes, i.e.
3387:
Try constructing the expression a different way. There are several online resources with guidance to creating efficient regex patterns.
159: 108: 99: 1838:
By default, quantifiers in AWB are greedy. To make a quantifier non-greedy, it must be followed by a question mark. For example:
3446: 2924:) anchors to match the beginning and end, respectively, of any line, rather than just the start and end of the whole string. 3582: 3469: 62: 1339:
Hyphens must be escaped within tokens, where they indicate a range; outside of tokens, they do not need to be escaped.
81: 17: 3082:. When you edit a page, you can enter your short-cut macro keys into the page anywhere you want AWB to act upon them. 177: 3630: 3313: 3288: 3261: 3158: 3079: 55: 3136:. Insert your short-cut editing macro key(s) anywhere in the page you want AWB to make the change(s) for you. 2487: 2473: 3110:, insert Level 2,3,or even 4 headlines, etc... This can all be done by creating your short-cut macro keys. 30: 3104: 1947: 1938: 268: 500: 42: 294: 3045:
applies the specified options only to the part of the pattern appearing inside the parentheses:
1931:, whose center capture group will span more than one ref group if the outer conditions are met: 3085:
For example, you are examining a page in the AWB edit box. You see numerous items like adding
2331: 667: 179: 3578: 637: 430:
Expressions which match any character in a pre-defined set. This list is not exhaustive.
3600: 3589: 2872:
Specifies case-insensitive matching (upper and lowercase letters are treated the same).
220:
It may contain information that is out of date with the latest AutoWikiBrowser releases.
182: 38: 3566: 3360: 2360:
Search for any of three template parameters and replace the value with some new value
3624: 3157:
paste more function. The reason why we use three '/' is so that AWB will not confuse
3088: 1089:
characters as possible while still allowing the full expression to find a match. See
181: 3438: 1703:
Tokens and groups are portions of a regular expression which can be followed by a
164: 683: 224: 3068:#Apply the IgnorePatternWhitespace (x) option to pattern1, but not to pattern2 991:
Quantifiers specify how many of the preceding token or group may be matched.
717:
Tokens match a single character from a specified set or range of characters.
2291:
Full name or abbreviated month name. (Only the abbreviations are captured.)
194: 3611: 380:
After all other characters on page (or line if multiline option is active)
3552: 2942:
Specifies that only groups that are named or numbered (e.g. with the form
320:
Used to anchor the search pattern to certain points in the searched text.
1852:
elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
3561: 3383:
AWB is taking a long time to generate results because of a regex rule:
652: 580: 564: 1707:
to modify the number of consecutive matches. A token is a character,
1596:
Comments in the search string do not affect the resulting matches.
700: 549:
abcxyz_ABCXYZ$ ?!#%*@&;:.,+-=^"/<{[(~(newline)(tab)(space)
1635:
Captured groups can be output as part of the replacement string.
3604: 3593: 3570: 304: 3540: 3506: 798:(including the characters given as the endpoints of the range) 3523: 3355: 189: 183: 1123:
Allows metacharacters (listed below) to be matched literally
3477: 3417: 796:
Range – matches any single character in the specified range
3241:<!--The quick brown fox jumps over the lazy dog--: --> 455:(Newline is included if singleline option is active; see 26:
Manual for using regular expressions with AutoWikiBrowser
3512: 3316:|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}} 2890:
Treats the searched text as a single line, by allowing (
2490:|name=Steveo|occupation=new value|nationality=The moon}} 3518: 3372: 900:(for use in back references or the replacement string) 870:(Output captured groups in the replacement string with 283: 276: 225: 3528: 2476:|name=Steveo|occupation=dancer|nationality=The moon}} 1637: 1598: 1441: 1352: 1103: 993: 847: 719: 432: 322: 3439:"Regex Tutorial – Unicode Characters and Properties" 518:
abcxyz_ABCXYZ$ ?!#%*@&;:.,+-=^"/<{[(~0123789
473:
abcdefghijklmnopqstuvwxyz​ABCDEFGHIJKLMNOPQRSTUVWXYZ
3042: 3012: 2995:a space, but not a tab or newline, use the pattern 2461: 2368: 2311: 2068: 2053: 1994: 1979: 1897: 1865: 1788: 1743: 1402: 1381: 1372: 1368: 1364: 1298: 1293: 1274: 1269: 1262: 1257: 1238: 1226: 1214: 1202: 1190: 1185: 1178: 1173: 1166: 1161: 1149: 1143: 1138: 969: 952: 933: 875: 871: 824: 813: 801: 742: 694: 677: 662: 647: 632: 614: 596: 574: 559: 541: 528: 510: 494: 480: 470:Any "word" character (letters, digits, underscore) 465: 444: 411: 398: 385: 372: 359: 334: 2037:Any date in dd/mm/yyyy or mm/dd/yyyy format, e.g. 1350:Used to match a previously captured group again. 868:Capture group – matches the string in parentheses 29:"WP:REGEX" redirects here. For Lua patterns, see 419:Not on a letter, number or underscore character 349:(Note that "^" has a different meaning inside a 342:Before all other characters on page (or line if 104:Discuss AWB, report errors, and request features 3410:"Regular Expression Language - Quick Reference" 1631:Using captured groups in the replacement string 3590:Regular Expression Language – Quick Reference 63: 8: 3338:The quick brown fox jumps over the lazy dog 406:On a letter, number or underscore character 3326:The quick brown fox jumps over the lazy dog 3231:The quick brown fox jumps over the lazy dog 936:matches and consumes, but doesn't capture, 485:Any character other than "word" characters 456: 343: 3169: 2296: 1704: 1090: 505:(space) (tab) (literal new line) (return) 236: 70: 56: 229:to improve the comprehension and quality. 3501:Online regular expressions testing tools 2841: 2303:Search for flagicon template and remove 2058:Any wiki-linked four-digit number, e.g. 1989:One or more letters, numbers or hyphens 1967: 1378:Match unnamed captured groups in order. 3547:Documentation about regular expressions 3535:Desktop regular expression testing tool 3400: 3167:Create a rule as a regular expression. 3078:You can make your own shortcut editing 2972: 1097:Metacharacters and the escape character 949:Alternation/disjunction (read as "or") 3108:Insert footnote text here</ref: --> 1708: 3449:from the original on 19 December 2022 1013:b* matches nothing, b, bb, bbb, etc. 764:Inverse – match any single character 515:Any character other than white space 7: 1712: 488:$ ?!#%*@&;:.,+-±=^"`\|/<: --> 367:Before all other characters on page 78: 3240: 3217: 3171:User made short-cut editing macros 3128:Find and replace, Advanced settings 3102: 3098: 3094: 1945: 1936: 393:After all other characters on page 113:Request or help with AWB-able tasks 1401:matches identical adjacent lines; 672:Ctrl-A through Ctrl-Z (0x01–0x1A) 205:subsection of the user manual for 24: 3074:User-made shortcut editing macros 1896:Be careful with expressions like 1405:will replace with a single copy. 3612:Regular Expressions – User Guide 3509:(supporting .NET regex flavour); 3470:"Options for regular expression" 3359: 2898:), which it otherwise does not. 1078:b{2,4} matches bb, bbb, or bbbb 546:Any character other than digits 193: 3515:(supporting .NET regex flavour) 3480:from the original on 2023-02-05 3420:from the original on 2023-02-05 815:– any uppercase letter between 803:– any lowercase letter between 773:– anything (including newline) 217:outside of the development team 18:Knowledge (XXG):AutoWikiBrowser 3134:Edit your page in the edit box 3097:, commenting out entire lines 1075:At least 2 and no more than 4 1065:b{3,} matches bbb, bbbb, etc. 1: 912:Output the named group using 619:Any uppercase Unicode letter 601:Any lowercase Unicode letter 3443:www.regular-expressions.info 2916:Changes the meaning of the ( 2298:Regular expression examples 1026:b+ matches b, bb, bbb, etc. 452:Any character except newline 3553:Regular Expressions in .NET 3161:in a page when re-parsing. 1716: 1415:Match named captured group 489:{}()~(newline)(tab)(space) 350: 3647: 3041:Alternatively, the syntax 2468:Example of text to search 2326:Example of text to search 1723: 1623:(?#Just a comment in here) 1147: 930:Non-capturing parentheses 739:character in the brackets 266: 39:Help:Searching § insource: 37:. For search queries, see 28: 3579:Regular Expression Syntax 3342: 3334: 3322:Example before reparsing 3321: 3307: 3297: 3281: 3271: 3253: 3246: 3236: 3224:Example before reparsing 3223: 3213: 3203: 3195: 3175: 3101:, inserting state names, 2505:Commonly used expressions 2495: 2481: 2467: 2457: 2364: 2359: 2352: 2342: 2325: 2317: 2307: 2302: 1640: 1601: 1444: 1355: 1106: 1039:b? matches nothing, or b 996: 850: 722: 435: 325: 3601:.NET regular expressions 3562:Regular-Expressions.info 3335:Result after re-parsing 3237:Result after re-parsing 3199:Comment out entire line 3093:, inserting line breaks 3047: 3018: 2778: 2753: 2668: 2586: 2508: 2312:{{\s*?lagicon\s*?\|.*?}} 1951:reference 2</ref: --> 1879: 1858: 1843: 3468:adegeo (29 June 2022). 3408:adegeo (18 June 2022). 3180:Comment out entire line 2953:IgnorePatternWhitespace 1439:look-around assertion. 907:matches the whole word 689:0123456789abcdefABCDEF 457:#Regex behavior options 416:Not on a word boundary 122:Technical documentation 50:AutoWikiBrowser 6.3.1.1 3556:Well House Consultants 3043:(?flags-flags:pattern) 3011:The options statement 2834:Regex behavior options 1942:reference</ref: --> 1644:Example search string 1131:Metacharacter escaped 1091:#Greed and quantifiers 768:those in the brackets 86:Introduction and rules 31:Help:Lua for beginners 3155:edit box context menu 3099:<!--comment--: --> 2894:) to match newlines ( 1934:sed do eiusmod tempor 1824:Greed and quantifiers 1658:Unnamed capture group 2947:) will be captured. 1692:$ {foo} returns ABC 1668:$ {2}0 returns Max0 1565:negative lookbehind 1531:positive lookbehind 826:– any digit between 501:whitespace character 226:edit, add, or remove 215:community-maintained 135:Developer discussion 43:Help:Searching/Regex 3567:Regular Expressions 3474:learn.microsoft.com 3414:learn.microsoft.com 3172: 3159:web addresses/url's 2851:Check box available 2299: 1682:Named capture group 1497:negative lookahead 1462:positive lookahead 898:Named capture group 403:On a word boundary 256:Regular expressions 203:Regular expressions 3371:. You can help by 3293:with current date 3170: 2297: 1687:ABC)(?<bar: --> 1148:Not in this list: 735:Set – matches any 642:(carriage return) 295:regular expression 155:Template redirects 145:Regular expression 3380: 3379: 3349: 3348: 3266:with current date 3218:<!--$ 1--: --> 3140:Re-parse the page 2991:(tab). (To match 2969: 2968: 2502: 2501: 2295: 2294: 1877:This expression: 1856:this expression: 1709:special character 1699:Tokens and groups 1696: 1695: 1628: 1627: 1589: 1588: 1431: 1430: 1343: 1342: 1156: 1154:(incomplete list) 1120:Escape Character 1107:Escape character 1082: 1081: 1052:b{3} matches bbb 984: 983: 838: 837: 710: 709: 668:Control character 627: 625:(incomplete list) 609: 607:(incomplete list) 591: 589:(incomplete list) 554: 552:(incomplete list) 523: 521:(incomplete list) 460: 426:Character classes 423: 422: 354: 307:flavor of regex. 265: 264: 235: 234: 3638: 3489: 3488: 3486: 3485: 3465: 3459: 3458: 3456: 3454: 3435: 3429: 3428: 3426: 3425: 3405: 3363: 3356: 3330: 3317: 3303: 3292: 3277: 3265: 3256: 3242: 3232: 3219: 3209: 3191: 3178: 3173: 3151: 3109: 3100: 3096: 3092: 3069: 3066: 3063: 3060: 3057: 3054: 3051: 3044: 3037: 3034: 3031: 3028: 3025: 3022: 3014: 3000: 2998: 2990: 2986: 2982: 2977: 2946: 2923: 2919: 2897: 2893: 2842: 2824: 2821: 2818: 2815: 2812: 2809: 2806: 2803: 2800: 2797: 2794: 2791: 2788: 2785: 2782: 2775: 2772: 2769: 2766: 2763: 2760: 2757: 2750: 2747: 2744: 2741: 2738: 2735: 2732: 2729: 2726: 2723: 2720: 2717: 2714: 2711: 2708: 2705: 2702: 2699: 2696: 2693: 2690: 2687: 2684: 2681: 2678: 2675: 2672: 2665: 2662: 2659: 2655: 2652: 2649: 2646: 2642: 2639: 2636: 2633: 2630: 2627: 2624: 2621: 2618: 2615: 2612: 2609: 2606: 2603: 2599: 2596: 2593: 2590: 2583: 2580: 2577: 2574: 2571: 2568: 2565: 2562: 2559: 2556: 2553: 2550: 2547: 2543: 2540: 2537: 2534: 2531: 2528: 2525: 2521: 2518: 2515: 2512: 2491: 2477: 2463: 2453: 2452: 2449: 2446: 2443: 2440: 2437: 2434: 2431: 2428: 2425: 2422: 2419: 2416: 2413: 2410: 2407: 2404: 2401: 2398: 2395: 2392: 2389: 2386: 2383: 2380: 2377: 2374: 2371: 2348: 2338: 2335: 2313: 2300: 2288: 2287: 2284: 2281: 2278: 2275: 2272: 2269: 2266: 2263: 2260: 2257: 2254: 2251: 2248: 2245: 2242: 2239: 2236: 2233: 2230: 2227: 2224: 2221: 2218: 2215: 2212: 2209: 2206: 2203: 2200: 2197: 2194: 2191: 2188: 2185: 2182: 2179: 2176: 2173: 2170: 2167: 2164: 2161: 2158: 2155: 2152: 2149: 2146: 2143: 2140: 2137: 2134: 2131: 2128: 2125: 2122: 2119: 2116: 2113: 2110: 2107: 2104: 2101: 2098: 2095: 2092: 2089: 2086: 2083: 2080: 2077: 2074: 2071: 2063: 2062: 2055: 2048: 2044: 2040: 2034: 2033: 2030: 2027: 2024: 2021: 2018: 2015: 2012: 2009: 2006: 2003: 2000: 1997: 1986: 1985: 1982: 1968: 1955: 1952: 1943: 1930: 1929: 1926: 1922: 1919: 1915: 1912: 1909: 1906: 1903: 1900: 1892: 1888: 1873: 1872: 1869:dolor sit amet, 1868: 1851: 1848:dolor sit amet, 1847: 1841:In this string: 1819: 1818: 1815: 1812: 1809: 1806: 1803: 1800: 1797: 1794: 1791: 1786: 1785: 1782: 1779: 1776: 1773: 1770: 1767: 1764: 1761: 1758: 1755: 1752: 1749: 1746: 1741: 1737: 1733: 1729: 1721: 1689: 1679: 1675: 1663: 1662:(Sam)(Max)(Pete) 1654: 1641:Reference style 1638: 1624: 1616: 1612: 1599: 1585: 1574: 1570: 1562: 1558: 1551: 1540: 1536: 1528: 1524: 1517: 1506: 1502: 1494: 1490: 1482: 1471: 1467: 1459: 1455: 1442: 1425: 1423: 1419: 1412: 1404: 1400: 1399: 1396: 1393: 1390: 1387: 1384: 1374: 1370: 1366: 1353: 1336: 1331: 1324: 1319: 1312: 1307: 1300: 1295: 1288: 1283: 1276: 1271: 1264: 1259: 1252: 1247: 1240: 1235: 1228: 1223: 1216: 1211: 1204: 1199: 1192: 1187: 1180: 1175: 1168: 1163: 1152: 1151: 1145: 1140: 1117: 1104: 1072: 1059: 1046: 1033: 1020: 1007: 994: 979: 975: 971: 966: 962: 958: 954: 946: 939: 935: 927: 923: 915: 910: 906: 895: 891: 883: 877: 873: 865: 861: 848: 833: 829: 825: 822: 818: 814: 810: 806: 802: 793: 787: 783: 779: 772: 761: 755: 751: 747: 743: 732: 720: 696: 679: 664: 649: 634: 623: 616: 605: 598: 587: 576: 561: 550: 543: 530: 519: 512: 496: 482: 467: 454: 446: 436:Character class 433: 413: 400: 387: 374: 364:Start of string 361: 348: 344:multiline option 339:Start of string 336: 323: 286: 279: 252:Find and replace 248:Database scanner 237: 228: 210: 197: 190: 184: 72: 65: 58: 51: 3646: 3645: 3641: 3640: 3639: 3637: 3636: 3635: 3631:AutoWikiBrowser 3621: 3620: 3583:docs.python.org 3549: 3537: 3503: 3498: 3493: 3492: 3483: 3481: 3467: 3466: 3462: 3452: 3450: 3437: 3436: 3432: 3423: 3421: 3407: 3406: 3402: 3397: 3376: 3369:needs expansion 3354: 3325: 3314:citation needed 3311: 3301: 3289:citation needed 3286: 3275: 3262:citation needed 3259: 3254: 3227: 3207: 3189: 3186:Short-cut key: 3176: 3149: 3086: 3076: 3071: 3070: 3067: 3064: 3061: 3058: 3055: 3052: 3049: 3039: 3038: 3035: 3032: 3029: 3026: 3023: 3020: 3009: 3004: 3003: 2996: 2988: 2984: 2980: 2978: 2974: 2944:(?<name: --> 2943: 2930:ExplicitCapture 2921: 2917: 2895: 2891: 2836: 2831: 2829:Tips and tricks 2826: 2825: 2822: 2819: 2816: 2813: 2810: 2807: 2804: 2801: 2798: 2795: 2792: 2789: 2786: 2783: 2780: 2777: 2776: 2773: 2770: 2767: 2764: 2761: 2758: 2755: 2752: 2751: 2748: 2745: 2742: 2739: 2736: 2733: 2730: 2727: 2724: 2721: 2718: 2715: 2712: 2709: 2706: 2703: 2700: 2697: 2694: 2691: 2688: 2685: 2682: 2679: 2676: 2673: 2670: 2667: 2666: 2663: 2660: 2656: 2653: 2650: 2647: 2643: 2640: 2637: 2634: 2631: 2628: 2625: 2622: 2619: 2616: 2613: 2610: 2607: 2604: 2600: 2597: 2594: 2591: 2588: 2585: 2584: 2581: 2578: 2575: 2572: 2569: 2566: 2563: 2560: 2557: 2554: 2551: 2548: 2544: 2541: 2538: 2535: 2532: 2529: 2526: 2522: 2519: 2516: 2513: 2510: 2507: 2485: 2471: 2450: 2447: 2444: 2441: 2438: 2435: 2432: 2429: 2426: 2423: 2420: 2417: 2414: 2411: 2408: 2405: 2402: 2399: 2396: 2393: 2390: 2387: 2384: 2381: 2378: 2375: 2372: 2369: 2346: 2336: 2329: 2285: 2282: 2279: 2276: 2273: 2270: 2267: 2264: 2261: 2258: 2255: 2252: 2249: 2246: 2243: 2240: 2237: 2234: 2231: 2228: 2225: 2222: 2219: 2216: 2213: 2210: 2207: 2204: 2201: 2198: 2195: 2192: 2189: 2186: 2183: 2180: 2177: 2174: 2171: 2168: 2165: 2162: 2159: 2156: 2153: 2150: 2147: 2144: 2141: 2138: 2135: 2132: 2129: 2126: 2123: 2120: 2117: 2114: 2111: 2108: 2105: 2102: 2099: 2096: 2093: 2090: 2087: 2084: 2081: 2078: 2075: 2072: 2069: 2060: 2059: 2046: 2042: 2038: 2031: 2028: 2025: 2022: 2019: 2016: 2013: 2010: 2007: 2004: 2001: 1998: 1995: 1983: 1980: 1966: 1964:Sample patterns 1961: 1933: 1927: 1923: 1920: 1916: 1913: 1910: 1907: 1904: 1901: 1898: 1890: 1886: 1883: 1882: 1870: 1866: 1862: 1861: 1854: 1853: 1849: 1845: 1826: 1816: 1813: 1810: 1807: 1804: 1801: 1798: 1795: 1792: 1789: 1783: 1780: 1777: 1774: 1771: 1768: 1765: 1762: 1759: 1756: 1753: 1750: 1747: 1744: 1739: 1735: 1731: 1727: 1720: 1713:character class 1701: 1685: 1677: 1673: 1666:$ 2 returns Max 1661: 1652: 1647:Example output 1633: 1622: 1614: 1610: 1594: 1583: 1572: 1568: 1560: 1556: 1549: 1538: 1534: 1526: 1522: 1515: 1504: 1500: 1492: 1488: 1480: 1469: 1465: 1457: 1453: 1436: 1421: 1418:(?<name: --> 1417: 1416: 1411:\k<name: --> 1410: 1397: 1394: 1391: 1388: 1385: 1382: 1348: 1346:Back references 1334: 1329: 1322: 1317: 1310: 1305: 1286: 1281: 1250: 1245: 1233: 1221: 1209: 1197: 1115: 1099: 1070: 1057: 1044: 1031: 1018: 1005: 989: 977: 973: 964: 960: 956: 944: 937: 925: 921: 913: 908: 904:(?<year: --> 903: 893: 890:(?<name: --> 889: 881: 863: 859: 843: 831: 827: 820: 816: 808: 804: 792: 785: 781: 777: 771: 760: 753: 749: 745: 731: 715: 638:Carriage return 428: 318: 313: 290: 289: 282: 275: 271: 207:AutoWikiBrowser 200: 188: 187: 186: 185: 180: 174: 77: 76: 49: 46: 27: 22: 21: 20: 12: 11: 5: 3644: 3642: 3634: 3633: 3623: 3622: 3619: 3618: 3609: 3598: 3587: 3576: 3564: 3559: 3548: 3545: 3544: 3543: 3536: 3533: 3532: 3531: 3526: 3521: 3516: 3510: 3502: 3499: 3497: 3496:External links 3494: 3491: 3490: 3460: 3430: 3399: 3398: 3396: 3393: 3392: 3391: 3388: 3378: 3377: 3366: 3364: 3353: 3350: 3347: 3346: 3344: 3340: 3339: 3336: 3332: 3331: 3323: 3319: 3318: 3309: 3305: 3304: 3299: 3295: 3294: 3283: 3279: 3278: 3273: 3272:Short-cut key 3269: 3268: 3251: 3250: 3248: 3244: 3243: 3238: 3234: 3233: 3225: 3221: 3220: 3215: 3211: 3210: 3205: 3201: 3200: 3197: 3193: 3192: 3187: 3183: 3182: 3146: 3145: 3144: 3143: 3137: 3131: 3118: 3117: 3075: 3072: 3048: 3019: 3013:(?flags-flags) 3008: 3005: 3002: 3001: 2987:(newline), or 2983:(whitespace), 2971: 2970: 2967: 2966: 2963: 2960: 2955: 2949: 2948: 2940: 2937: 2932: 2926: 2925: 2914: 2911: 2906: 2900: 2899: 2888: 2885: 2880: 2874: 2873: 2870: 2867: 2862: 2856: 2855: 2852: 2849: 2846: 2835: 2832: 2830: 2827: 2779: 2754: 2669: 2587: 2509: 2506: 2503: 2500: 2499: 2497: 2493: 2492: 2488:infobox person 2483: 2479: 2478: 2474:infobox person 2469: 2465: 2464: 2459: 2455: 2454: 2366: 2362: 2361: 2357: 2356: 2354: 2350: 2349: 2344: 2340: 2339: 2327: 2323: 2322: 2319: 2315: 2314: 2309: 2305: 2304: 2293: 2292: 2289: 2065: 2064: 2056: 2050: 2049: 2035: 1991: 1990: 1987: 1976: 1975: 1972: 1971:Regex pattern 1965: 1962: 1960: 1957: 1944:incididunt ut 1932: 1880: 1859: 1844: 1825: 1822: 1700: 1697: 1694: 1693: 1690: 1686:(?<foo: --> 1683: 1680: 1670: 1669: 1667: 1664: 1659: 1656: 1649: 1648: 1645: 1642: 1632: 1629: 1626: 1625: 1620: 1617: 1607: 1606: 1603: 1593: 1590: 1587: 1586: 1569:(?<!xyz)abc 1566: 1563: 1553: 1552: 1535:(?<=xyz)abc 1532: 1529: 1519: 1518: 1498: 1495: 1485: 1484: 1463: 1460: 1450: 1449: 1446: 1435: 1432: 1429: 1428: 1426: 1413: 1407: 1406: 1379: 1376: 1361: 1360: 1357: 1347: 1344: 1341: 1340: 1337: 1332: 1326: 1325: 1320: 1314: 1313: 1308: 1302: 1301: 1296: 1290: 1289: 1284: 1278: 1277: 1272: 1266: 1265: 1260: 1254: 1253: 1248: 1242: 1241: 1236: 1230: 1229: 1224: 1218: 1217: 1212: 1206: 1205: 1200: 1194: 1193: 1188: 1182: 1181: 1176: 1170: 1169: 1164: 1158: 1157: 1150:=}#!/%&_:; 1146: 1141: 1135: 1134: 1132: 1129: 1128:Metacharacter 1125: 1124: 1121: 1118: 1112: 1111: 1108: 1098: 1095: 1093:for examples. 1080: 1079: 1076: 1073: 1067: 1066: 1063: 1060: 1054: 1053: 1050: 1047: 1041: 1040: 1037: 1034: 1028: 1027: 1024: 1021: 1015: 1014: 1011: 1008: 1002: 1001: 998: 988: 985: 982: 981: 967: 950: 947: 941: 940: 931: 928: 918: 917: 901: 899: 896: 886: 885: 879: 869: 866: 856: 855: 852: 842: 839: 836: 835: 823: 811: 799: 797: 794: 789: 788: 769: 762: 757: 756: 740: 733: 728: 727: 724: 714: 711: 708: 707: 704: 697: 691: 690: 687: 680: 674: 673: 670: 665: 659: 658: 655: 650: 644: 643: 640: 635: 629: 628: 620: 617: 611: 610: 602: 599: 593: 592: 584: 577: 571: 570: 567: 562: 556: 555: 547: 544: 538: 537: 534: 531: 525: 524: 516: 513: 507: 506: 503: 497: 491: 490: 486: 483: 477: 476: 474: 471: 468: 462: 461: 453: 450: 447: 441: 440: 437: 427: 424: 421: 420: 417: 414: 408: 407: 404: 401: 395: 394: 391: 390:End of string 388: 382: 381: 378: 377:End of string 375: 369: 368: 365: 362: 356: 355: 347: 340: 337: 331: 330: 327: 317: 314: 312: 309: 288: 287: 280: 272: 267: 263: 262: 241: 233: 232: 231: 230: 221: 218: 198: 178: 176: 175: 173: 172: 167: 162: 157: 152: 147: 142: 137: 132: 126: 125: 124: 123: 121: 114: 112: 105: 103: 96: 95:How to use AWB 94: 87: 85: 75: 74: 67: 60: 52: 48: 47: 25: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 3643: 3632: 3629: 3628: 3626: 3616: 3613: 3610: 3607: 3606: 3602: 3599: 3596: 3595: 3591: 3588: 3585: 3584: 3580: 3577: 3574: 3572: 3568: 3565: 3563: 3560: 3557: 3554: 3551: 3550: 3546: 3542: 3539: 3538: 3534: 3530: 3527: 3525: 3522: 3520: 3517: 3514: 3511: 3508: 3505: 3504: 3500: 3495: 3479: 3475: 3471: 3464: 3461: 3448: 3444: 3440: 3434: 3431: 3419: 3415: 3411: 3404: 3401: 3394: 3389: 3386: 3385: 3384: 3374: 3370: 3367:This section 3365: 3362: 3358: 3357: 3351: 3345: 3341: 3337: 3333: 3329: 3324: 3320: 3315: 3310: 3308:Replace With 3306: 3300: 3296: 3290: 3284: 3280: 3274: 3270: 3267: 3263: 3252: 3249: 3245: 3239: 3235: 3230: 3226: 3222: 3216: 3214:Replace With 3212: 3206: 3202: 3198: 3194: 3188: 3185: 3184: 3181: 3174: 3168: 3165: 3162: 3160: 3156: 3141: 3138: 3135: 3132: 3129: 3125: 3124:Create a rule 3122: 3121: 3120: 3119: 3116: 3113: 3112: 3111: 3106: 3095:<br /: --> 3090: 3083: 3081: 3073: 3046: 3017: 3007:Inline syntax 3006: 2994: 2976: 2973: 2964: 2961: 2959: 2956: 2954: 2951: 2950: 2941: 2938: 2936: 2933: 2931: 2928: 2927: 2915: 2912: 2910: 2907: 2905: 2902: 2901: 2889: 2886: 2884: 2881: 2879: 2876: 2875: 2871: 2868: 2866: 2863: 2861: 2858: 2857: 2853: 2850: 2847: 2844: 2843: 2840: 2833: 2828: 2504: 2498: 2494: 2489: 2484: 2480: 2475: 2470: 2466: 2460: 2458:Replace With 2456: 2367: 2363: 2358: 2355: 2351: 2345: 2341: 2333: 2328: 2324: 2320: 2318:Replace With 2316: 2310: 2306: 2301: 2290: 2067: 2066: 2057: 2052: 2051: 2036: 1993: 1992: 1988: 1978: 1977: 1973: 1970: 1969: 1963: 1958: 1956: 1953: 1949: 1940: 1894: 1878: 1875: 1857: 1842: 1839: 1836: 1834: 1830: 1823: 1821: 1725: 1718: 1714: 1710: 1706: 1698: 1691: 1684: 1681: 1672: 1671: 1665: 1660: 1657: 1651: 1650: 1646: 1643: 1639: 1636: 1630: 1621: 1618: 1609: 1608: 1604: 1600: 1597: 1591: 1581: 1577: 1567: 1564: 1555: 1554: 1547: 1543: 1533: 1530: 1521: 1520: 1513: 1509: 1499: 1496: 1487: 1486: 1478: 1474: 1464: 1461: 1452: 1451: 1447: 1443: 1440: 1433: 1427: 1414: 1409: 1408: 1380: 1377: 1363: 1362: 1358: 1354: 1351: 1345: 1338: 1333: 1328: 1327: 1321: 1316: 1315: 1309: 1304: 1303: 1297: 1292: 1291: 1285: 1280: 1279: 1273: 1268: 1267: 1261: 1256: 1255: 1249: 1244: 1243: 1237: 1232: 1231: 1225: 1220: 1219: 1213: 1208: 1207: 1201: 1196: 1195: 1189: 1184: 1183: 1177: 1172: 1171: 1165: 1160: 1159: 1155: 1142: 1137: 1136: 1133: 1130: 1127: 1126: 1122: 1119: 1114: 1113: 1109: 1105: 1102: 1096: 1094: 1092: 1088: 1077: 1074: 1069: 1068: 1064: 1061: 1056: 1055: 1051: 1048: 1043: 1042: 1038: 1035: 1030: 1029: 1025: 1022: 1017: 1016: 1012: 1009: 1004: 1003: 999: 995: 992: 986: 980: 951: 948: 943: 942: 932: 929: 920: 919: 916: 902: 897: 888: 887: 880: 867: 858: 857: 853: 849: 846: 840: 834: 800: 795: 791: 790: 776: 770: 767: 763: 759: 758: 741: 738: 734: 730: 729: 725: 721: 718: 712: 705: 702: 698: 693: 692: 688: 685: 681: 676: 675: 671: 669: 666: 661: 660: 656: 654: 651: 646: 645: 641: 639: 636: 631: 630: 626: 621: 618: 613: 612: 608: 603: 600: 595: 594: 590: 586:AaÃãÂâĂăÄäÅå 585: 582: 578: 573: 572: 568: 566: 563: 558: 557: 553: 548: 545: 540: 539: 535: 532: 527: 526: 522: 517: 514: 509: 508: 504: 502: 498: 493: 492: 487: 484: 479: 478: 472: 469: 464: 463: 458: 451: 448: 443: 442: 438: 434: 431: 425: 418: 415: 410: 409: 405: 402: 397: 396: 392: 389: 384: 383: 379: 376: 371: 370: 366: 363: 358: 357: 352: 345: 341: 338: 333: 332: 328: 324: 321: 315: 310: 308: 306: 301: 297: 296: 285: 281: 278: 274: 273: 270: 261: 260:General fixes 257: 253: 249: 245: 242: 239: 238: 227: 223:Feel free to 222: 219: 216: 212: 211: 208: 204: 199: 196: 192: 191: 171: 168: 166: 163: 161: 158: 156: 153: 151: 148: 146: 143: 141: 138: 136: 133: 131: 128: 127: 120: 119: 115: 111: 110: 106: 102: 101: 97: 93: 92: 88: 84: 83: 79: 73: 68: 66: 61: 59: 54: 53: 44: 40: 36: 32: 19: 3614: 3603: 3592: 3581: 3569: 3555: 3482:. Retrieved 3473: 3463: 3451:. Retrieved 3442: 3433: 3422:. Retrieved 3413: 3403: 3381: 3373:adding to it 3368: 3327: 3257: 3228: 3179: 3166: 3163: 3147: 3139: 3133: 3123: 3114: 3084: 3077: 3040: 3010: 2992: 2975: 2957: 2952: 2934: 2929: 2908: 2903: 2882: 2877: 2864: 2859: 2837: 2406:notableworks 1935: 1895: 1884: 1876: 1863: 1855: 1840: 1837: 1832: 1828: 1827: 1702: 1634: 1595: 1579: 1575: 1545: 1541: 1511: 1507: 1476: 1472: 1437: 1349: 1153: 1100: 1086: 1083: 990: 968: 911: 884:matches abc 844: 812: 774: 765: 736: 716: 624: 606: 588: 551: 520: 475:0123456789_ 429: 319: 299: 293: 291: 255: 206: 202: 201:This is the 144: 116: 107: 98: 89: 80: 3507:RegEx Storm 3115:The process 2848:Inline flag 1974:Will Match 1885:will match 1864:will match 1434:Look-around 987:Quantifiers 970:(ab(cd|ef)) 684:hexadecimal 536:0123456789 449:"wildcard" 439:Will match 284:WP:AWBREGEX 165:Usage stats 91:User manual 35:mw:Patterns 3615:zytrax.com 3541:RegEx Hero 3484:2023-02-05 3424:2023-02-05 3395:References 3352:Efficiency 3208:///col(.*) 3164:Examples: 2878:SingleLine 2860:IgnoreCase 2394:occupation 2321:(nothing) 2047:24/03/2008 2043:03/24/2008 1833:quantifier 1705:quantifier 1592:Commenting 1578:when it's 1510:when it's 1501:abc(?!xyz) 1466:abc(?=xyz) 1062:3 or more 1049:Exactly 3 1023:1 or more 1010:0 or more 953:(ab|cd|ef) 905:\b\d{4}\b) 569:(newline) 533:Any digit 346:is active) 240:Chapters: 109:User tasks 100:Discussion 3573:.perl.org 3519:RexEx Pal 3453:3 January 3343:Comments 3247:Comments 2904:MultiLine 2784:bracketed 2710:templates 2692:templates 2657:/ref: --> 2496:Comments 2462:new value 2353:Comments 2039:3/24/2008 1954:. labore 1605:Comments 1448:Examples 1359:Comments 1110:Comments 1000:Examples 854:Examples 726:Examples 706:01234567 329:Comments 269:Shortcuts 130:Changelog 118:Technical 3625:Category 3513:RegEx101 3478:Archived 3447:Archived 3418:Archived 3065:pattern2 3059:pattern1 2686:possibly 2674:template 2658:))+</ 2629:notation 2332:flagicon 1959:Examples 1918:.*?</ 1619:comment 1580:preceded 1571:matches 1546:preceded 1544:if it's 1537:matches 1512:followed 1503:matches 1477:followed 1475:if it's 1468:matches 972:matches 955:matches 914:$ {year} 878:, etc.) 744:matches 277:WP:REGEX 3571:perldoc 3529:Rubular 3285:Insert 3258:Insert 2920:) and ( 2854:Effect 2576:)+</ 2482:Result 2343:Result 1796:-?)?(?: 1602:Syntax 1557:(?<! 1523:(?<= 1445:Syntax 1375:, etc. 1356:Syntax 1036:0 or 1 997:Syntax 934:(?:abc) 851:Syntax 723:Tokens 622:AÃÂĂÄÅ 604:aãâăäå 583:letter 581:Unicode 565:Newline 326:Syntax 316:Anchors 170:Userbox 150:Sandbox 140:Modules 3524:RegExr 3328:///fac 3302:///fac 3276:///fac 3255:///fac 3229:///col 3190:///col 3177:///col 3126:. See 3080:macros 2997:\p{Zs} 2845:Option 2765:spaces 2713:inside 2695:inside 2644:*: --> 2592:inside 2570:|</ 2564:|</ 2558:|</ 2555:|</ 2545:*: --> 2514:inside 2400:spouse 2334:|USA}} 2214:tember 1917:*: --> 1787:, and 1784:){3,7} 1719:(e.g. 1576:except 1508:except 1323:\: --> 841:Groups 775:except 766:except 737:single 713:Tokens 703:digit 686:digit 657:(tab) 615:\p{Lu} 597:\p{Ll} 459:below) 311:Syntax 213:It is 3298:Find 3282:Name 3204:Find 3196:Name 3107:: --> 2839:off. 2790:Regex 2781:Match 2768:Regex 2759:words 2756:Match 2719:Regex 2716:those 2671:Match 2664:: --> 2632:Regex 2623:match 2611:using 2608:: --> 2602:</ 2601:: --> 2589:Match 2582:: --> 2533:Regex 2530:: --> 2524:</ 2523:: --> 2511:Match 2365:Find 2308:Find 2277:ember 2259:ember 2232:.?|)| 2097:ruary 2014:{1,2} 2005:{1,2} 1950:: --> 1941:: --> 1924:: --> 1829:Greed 1736:\d{4} 1724:group 1722:). A 1717:range 1715:, or 1318:: --> 1203:\< 1071:{2,4} 882:(abc) 701:octal 575:\p{L} 351:token 300:regex 160:Typos 16:< 3605:MSDN 3594:MSDN 3455:2023 3103:< 3089:fact 2993:only 2808:< 2805:*((? 2787:URLs 2689:with 2651:< 2638:< 2595:< 2552:< 2539:< 2517:< 2430:+(?= 2373:< 2286:.|)) 2268:.|)| 2250:.|)| 2241:ober 2205:.|)| 2187:.|)| 2169:.|)| 2142:.|)| 2124:.|)| 2106:.|)| 2088:.|)| 2079:uary 1946:< 1937:< 1911:< 1889:and 1881:\\] 1860:\\] 1790:((?: 1688:DEF) 1542:only 1473:only 1198:< 1058:{3,} 978:abef 974:abcd 909:2016 830:and 819:and 807:and 699:Any 682:Any 579:Any 499:Any 305:.NET 244:Core 82:Home 41:and 33:and 3150:/// 3105:ref 2939:Yes 2913:Yes 2887:Yes 2869:Yes 2820:*|) 2762:and 2704:but 2680:... 2661:ref 2654:(?! 2641:ref 2620:not 2617:(?! 2605:ref 2598:ref 2579:ref 2573:ref 2542:ref 2527:ref 2520:ref 2274:(?: 2271:Dec 2256:(?: 2253:Nov 2238:(?: 2235:Oct 2211:(?: 2208:Sep 2196:ust 2193:(?: 2190:Aug 2175:(?: 2172:Jul 2157:(?: 2154:Jun 2151:.?| 2145:May 2130:(?: 2127:Apr 2112:(?: 2109:Mar 2094:(?: 2091:Feb 2076:(?: 2073:Jan 2054:\\] 2045:or 2041:or 2017:\/\ 2008:\/\ 1948:ref 1939:ref 1921:ref 1914:ref 1781:not 1732:\n+ 1676:... 1674:$ { 1613:... 1611:(?# 1584:xyz 1582:by 1573:abc 1559:... 1550:xyz 1548:by 1539:abc 1525:... 1516:xyz 1514:by 1505:abc 1491:... 1489:(?! 1481:xyz 1479:by 1470:abc 1456:... 1454:(?= 1420:... 1403:$ 1 1167:\$ 1087:few 1045:{3} 976:or 963:or 959:or 938:abc 924:... 922:(?: 892:... 876:$ 2 872:$ 1 862:... 784:or 780:or 752:or 748:or 653:Tab 298:or 3627:: 3476:. 3472:. 3445:. 3441:. 3416:. 3412:. 3312:{{ 3291:}} 3287:{{ 3264:}} 3260:{{ 3091:}} 3087:{{ 3050:(? 3024:im 3021:(? 2999:.) 2989:\t 2985:\n 2981:\s 2962:No 2922:$ 2896:\n 2823:\] 2802:+) 2749:}} 2746:)+ 2743:}} 2737:{{ 2728:(| 2725:{{ 2707:no 2698:it 2683:}} 2677:{{ 2567:re 2486:{{ 2472:{{ 2451:)) 2448:}} 2445:|| 2439:*( 2427:*) 2418:*= 2391:*( 2370:(? 2330:{{ 2223:.| 2133:il 2115:ch 1984:+) 1925:)( 1908:)( 1893:. 1874:. 1820:. 1805:?) 1793:97 1778:*| 1742:, 1738:, 1734:, 1730:, 1728:a? 1711:, 1653:$ 1483:. 1392:+) 1373:\3 1371:, 1369:\2 1367:, 1365:\1 1335:\- 1311:\| 1299:\\ 1287:\{ 1275:\] 1263:\[ 1251:\? 1239:\+ 1227:\* 1215:\. 1191:\) 1179:\( 1162:$ 1144:\^ 965:ef 961:cd 957:ab 874:, 695:\0 678:\x 663:\c 648:\t 633:\r 560:\n 542:\D 529:\d 511:\S 495:\s 481:\W 466:\w 412:\B 399:\b 386:\Z 373:$ 360:\A 353:.) 292:A 258:· 254:· 250:· 246:· 3617:. 3608:. 3597:. 3586:. 3575:. 3558:. 3487:. 3457:. 3427:. 3375:. 3130:. 3062:) 3056:: 3053:x 3033:) 3030:s 3027:- 2958:x 2945:) 2935:n 2918:^ 2909:m 2892:. 2883:s 2865:i 2817:] 2814:) 2811:= 2799:\ 2796:\ 2793:: 2774:+ 2771:: 2740:+ 2734:| 2731:{ 2722:: 2701:, 2648:| 2645:( 2635:: 2626:) 2614:a 2561:r 2549:| 2546:( 2536:: 2442:\ 2436:s 2433:\ 2424:s 2421:\ 2415:s 2412:\ 2409:) 2403:| 2397:| 2388:s 2385:\ 2382:| 2379:\ 2376:= 2347:] 2337:] 2283:\ 2280:| 2265:\ 2262:| 2247:\ 2244:| 2229:\ 2226:t 2220:\ 2217:| 2202:\ 2199:| 2184:\ 2181:| 2178:y 2166:\ 2163:| 2160:e 2148:\ 2139:\ 2136:| 2121:\ 2118:| 2103:\ 2100:| 2085:\ 2082:| 2070:( 2061:] 2032:) 2029:} 2026:4 2023:{ 2020:d 2011:d 2002:d 1999:\ 1996:( 1981:( 1928:) 1905:w 1902:\ 1899:( 1891:] 1887:] 1871:] 1867:] 1850:] 1846:] 1817:) 1814:} 1811:9 1808:{ 1802:d 1799:\ 1775:} 1772:4 1769:{ 1766:d 1763:\ 1760:+ 1757:n 1754:\ 1751:? 1748:a 1745:( 1740:* 1678:} 1655:# 1615:) 1561:) 1527:) 1493:) 1458:) 1424:. 1422:) 1398:1 1395:\ 1389:n 1386:\ 1383:( 1330:- 1306:| 1294:\ 1282:{ 1270:] 1258:[ 1246:? 1234:+ 1222:* 1210:. 1186:) 1174:( 1139:^ 1116:\ 1032:? 1019:+ 1006:* 945:| 926:) 894:) 864:) 860:( 832:7 828:0 821:Q 817:A 809:q 805:a 786:c 782:b 778:a 754:f 750:e 746:d 445:. 335:^ 209:. 71:e 64:t 57:v 45:.

Index

Knowledge (XXG):AutoWikiBrowser
Help:Lua for beginners
mw:Patterns
Help:Searching § insource:
Help:Searching/Regex
v
t
e
Home
User manual
Discussion
User tasks
Technical
Changelog
Developer discussion
Modules
Regular expression
Sandbox
Template redirects
Typos
Usage stats
Userbox

community-maintained
edit, add, or remove
Core
Database scanner
Find and replace
Regular expressions
General fixes

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.