Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
1 answer
85 views

I want to escape all numbers into characters in regular expression, but I don't know what numbers can be converted to what characters. For example, I want to escape all the following numbers: 123円 ...
-5 votes
0 answers
61 views

I need a regex pattern to use to extract the numeric portion from a US currency amount. Example: 1,234ドル.56 I should get: 1234.56 Closest regex I've come to is this: \d+(\.\d+)*, but if I try it on ...
Ahmad's user avatar
  • 13.5k
0 votes
3 answers
195 views

I try with some regex to obtain only the URL of all the videos about $pattern but my $regex not work (in this case $pattern = "Greta"): $data = '<p><a href="https://www.youtube....
Yamile's user avatar
  • 55
-4 votes
1 answer
137 views

In an attempt to avoid switch /x for a complex regular expression, I tried to replace qr/string/ with the following expression: (map { qr/$_/ } ("a more" . "complex regex"))[0] As ...
U. Windl's user avatar
  • 4,822
1 vote
3 answers
200 views

I have some old data files with a large number of writing errors. An example is attached below, where some of the numbers in the .dat file are 9 digits or characters long rather than the expected 8. ...
user8229029's user avatar
  • 1,242
2 votes
2 answers
114 views

I have a string element in an XML schema that I would like to restrict to the extended Latin character set plus numbers, punctuation, whitespace, etc. I have tried the following: <xsd:pattern value=...
nickfindley's user avatar
4 votes
2 answers
171 views

I have found the answer :-) It is: ^ghf(0[0-9]|[1-4][0-9]|5[0-2])\d{3}[A-Z]{2}_v\d{2}.pdf$ I receive filenames from a client that are structured according to the following scheme: ghf50001BE_v02.pdf ...
0 votes
4 answers
153 views

Incoming with another VBA question. I'm currently have data within a column that has many line breaks, but certain lines need to be only indented 2 spaces whereas certain lines need to be indented by ...
-1 votes
3 answers
101 views

I want to delete all lines that end with OFF except if they contain override. Input 1765193089 socket override DiningRoom/Socket/Work/state ON 1765206025 socket evening Hall/Socket/Lantern/state OFF ...
-4 votes
3 answers
199 views

I’m trying to extract a specific portion of text and haven’t had success despite testing multiple patterns and looking at similar examples. After struggling for a while, I figured it was time to ask ...
Hakan54's user avatar
  • 4,129
2 votes
2 answers
146 views

I have a regular expression in an extension of java by florian ingerl to parse a latex command, \\\\DocumentMetadata(?<docMetadata>\\{(?:[^{}]|(?'docMetadata'))*\\}) but the important thing is ...
user2609605's user avatar
-2 votes
1 answer
130 views

As far as I understand, the difference between expected and actual one is NBSP (Non‐Breaking Space). I don’t know how to remove this. It doesn’t get highlighted and cannot be found using CTRL+H (...
holysh's user avatar
  • 32
-2 votes
2 answers
141 views

I’m working with .srt subtitle files in PHP and I need a regex that finds blocks containing exactly one dash (They're regular hyphens (-), not minus signs) and it starts at the beginning of a line. ...
Mwthreex's user avatar
  • 1,097
4 votes
1 answer
102 views

I'm working on a php project and I need to extract some informations from strings like : COROLLA CROSS (07/22>09/25<) I tried different patterns without success, such as: preg_match("/(?P&...
Abdel's user avatar
  • 744
1 vote
1 answer
91 views

I have this method: func isNameValid(_ value: String) -> Bool { let trimmed = value.trimmingCharacters(in: .whitespaces) guard value == trimmed else { return false } guard trimmed.count ...
Whirlwind's user avatar
  • 12.7k

15 30 50 per page
1
2 3 4 5
...
17410

AltStyle によって変換されたページ (->オリジナル) /