codesquad tag

3 questions


1 answers
134 views
0
Differences between match and search in python regular expressions

In Python, you try to find if the string contains a something: as a regular expression. import rere.match(r'a[\s\w]+:',a something:)#a preceded by a spaceThis will result in None.import rere.search (r...

1 years ago

2 answers
84 views
0
Extract DOM className to only the desired className using a regular expression.

Hello, I have a question about the regular expression, so I'm uploading it.In the case of multiple classnames as below, I would like to ask if there is a regular expression that extracts only classnam...

1 years ago

2 answers
53 views
0
Loading large two-dimensional arrays in Swift 3.0.

Swift can load a large two-dimensional array, for example code.let p:[[Int]] = [[10,6],[42,42],[30,46],[42,36],[7,9],[22,24],[29,25],[16,1],[15,38],[35,7],[34,14],[14,4],[34,6],[9,15],[13,31],[11,46],...

1 years ago

© 2024 OneMinuteCode. All rights reserved.