Welcome toVigges Developer Community-Open, Learning,Share
Login
Remember
Register
Ask
Q&A
All Activity
Hot!
Unanswered
Tags
Users
Ask a Question
Ask a Question
Categories
All categories
Topic[话题] (13)
Life[生活] (4)
Technique[技术] (2.1m)
Idea[创意] (3)
Jobs[工作] (2)
Others[杂七杂八] (18)
Code Example[编程示例] (0)
一个关于正则的问题
0
votes
2.9k
views
asked
Jan 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
一个关于正则的问题
我想把word从这个字符串中提取出来
{t('word')}
.
但是不能从
{t("word')}
提取出来。因为引号不匹配。
/
1
t(([`|'|"]?)(.*?)$1/ 我尝试通过以上正则匹配实现,但是$1不能生效,请问有好的办法吗?
w
?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 24, 2021
by
深蓝
(
71.8m
points)
$1改成1试试
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Please
log in
or
register
to add a comment.
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
Just Browsing Browsing
[1] syntax error - How do I put a variable in a geolocator.reverse() function? in python
[2] java - Single Logout not working with multiple SP - Spring Security SAML
[3] 用Print.js调打印机,但是打印机页面与打印页面不一致。求怎么解决样式问题
[4] react-native 图片组件,http请求图片base64, 请问如何优化?
[5] 如何给echarts的bezierCurve贝塞尔曲线添加tooltip提示框功能?
[6] sapui5 - FlexibleColumnLayout navigation using reuse component to detail-detail-page (3rd column)
[7] javascript - Can Firebase Emulators be used for integration testing with a React frontend?
[8] 消息队列使用场景疑惑
[9] notifications - OneM2M: Notify IN-CSE of the new resources created on MN-CSE
[10] let c=(b=a)的意思是啥
2.1m
questions
2.1m
answers
63
comments
56.7k
users
Most popular tags
javascript
python
c#
java
How
android
c++
php
ios
html
sql
r
c
node.js
.net
iphone
asp.net
css
reactjs
jquery
ruby
What
Android
objective
mysql
linux
Is
git
Python
windows
Why
regex
angular
swift
amazon
excel
algorithm
macos
Java
visual
how
bash
Can
multithreading
PHP
Using
scala
angularjs
typescript
apache
spring
performance
postgresql
database
flutter
json
rust
arrays
C#
dart
vba
django
wpf
xml
vue.js
In
go
Get
google
jQuery
xcode
jsf
http
Google
mongodb
string
shell
oop
powershell
SQL
C++
security
assembly
docker
Javascript
Android:
Does
haskell
Convert
azure
debugging
delphi
vb.net
Spring
datetime
pandas
oracle
math
Django
联盟问答网站-Union QA website
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
广告位招租
...