Questions tagged [Regular expressions] (1770)

3
answers

Replace the code in Dreamweaver using regular expression

There is a dump of the Database, the size of 10 MB, which has about 7,000 of these lines: <br / > <br / > You need these lines to remove, but do not understand how to do it, because the url in the links different and with the regular season I somehow could not make friends in this aspect.<br> <br / >...
emie13 asked October 14th 19 at 11:48
2
answers

Zend_Filter_StringTrim does not work correctly with UTF-8

It was found that the filter for the trimming of strings though, and declares "Unicode aware trim method", but not that he is "aware trim". If it gets a string ending with the Cyrillic uppercase "R", it deteriorates. Probably because its representation in UTF-8 ends at A0. Specifically, a problem emerges here in the regula...
damaris asked October 14th 19 at 11:07
2
answers

Need help with a regular season — validation of all possible addresses (URLS)?

Hello! I have this regular season, which with his work until recently coped with a Bang:~^ # scheme [-a-z0-9+.]++:// # username:password (optional) (?: [-a-z0-9$_.+!*\'(),;?&=%]++ # username (?::[-a-z0-9$_.+!*\'(),;?&=%]++)? # password (optional) @ )? (?: # ip address \d{1,3}+(?:\.\d{1,3}+){3}+ | # or # ho...
blair_Mann asked October 10th 19 at 14:56
4
answers

Php + regExp like?

Have a simple example (in php):$text='\\'; preg_match_all('/\\\\/',$text,$item); print_r($item); The output is:Array ( [0] => Array ( [0] => \ ) ) The question is how to get the 2 slashes instead of one? It is not necessary to adjust the search string, and some way to disable output escaping slashes in php.
Kurt asked October 10th 19 at 13:41
4
answers

A regular expression in nginx location?

Good evening, already 2 3 days struggling with the problemlocation ~* ^/.+\.(php)$ { — a regular expression in the nginx configuration file, which tells us that if the requested *file.php, this location marks. Before me stands a challenge: make location excludes php. That is, if the request is NOT php, then location is proc...
Isabell_Farrell62 asked October 10th 19 at 13:27
3
answers

SQL UPDATE with regular expressions

There are in the table of strings like '123abc', '123bcd'. They need samnite part of a string (e.g. '123') to another string (such as '345'), but so that the second part remained in place. And this is one request on many, many rows. Ie, the regular season would look like this: var input = '123abc'; var replaceText = '345$1...
Trenton.Cri asked October 10th 19 at 12:43
8
answers

A regular expression that checks that each symbol 'a' in the string is an even number of characters

Published a screening survey for the position of J2EE programmer. Correct answers to the question about a regular expression from zero to four hundred. Why so few?
Margarete.Stok asked October 10th 19 at 07:27
2
answers

RegExp-task

Faced such task: there is a line where arbitrary pieces of text can be contained in brackets. You want to select all four-digit numbers (year) that outside of the brackets. For example, the string: $text = "(P. 1: 15. X. 1481; P. 2: 4. XII. 1482); P. 3: 18. II. 1483; P. 4: 10. VI. 1484; P. 5: 10. VI. 1485; (P. 6: 6. IX. 14...
Victoria_Spin asked October 10th 19 at 06:48
4
answers

To find text on the page using regular expressions in Mozilla Firefox

Is there a possibility in firefox or plugin to a thread?
ernest.Hoppe79 asked October 10th 19 at 06:43
1
answer

How to snatchit in Python multiline text regexpal?

How to snatchit in the Python text file from regexpal? not limited to \r\n.
Greyson.Schmitt asked October 10th 19 at 06:35