简体   繁体   中英

regex to replace the entire character in string

the string may have characters like "abc @ xyz 1234-4321", i need regex to replace the characters inside the quoted string with the another string using text replace action in final builder.

Thanks in advance ,Any help would be appreciable.

".*?" will find anything between two ".

The dot matches everything, while the * tells it that you want somewhere between zero and many occurences. You can then just replace it with "yourstring".

If you don't want to write "yourstring" you could also use a capture group "(.*?)" but honestly it's overkill for this.

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