简体   繁体   中英

How can i make regular expression for ExtraFields in javascript

ExtraFields[milage_1][from] ExtraFields[milage_1][to]

ExtraFields[model_year_example_1998_2001_0][from]

ExtraFields[model_year_example_1998_2001_0][to]

This is the values i just want to check for Extrafields and [from] .

i.match(/^ExtraFields.*[f.*.m]/g)

but it pass through for both [from] and [to] and i want to only make true if there is [from] only.

我所做的是删除[f.*.m]括号这对我/^ExtraFields.*f.*.m/g

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM