|
-
Mar 13th, 2025, 04:03 PM
#1
[RESOLVED] Replace/Regex.Replace?
I have a large badly formatted wordlist...
ability (n) able
(adj) • be able to
about (adv & prep)
• about 500 students (adv) •
The film is about a small
boy.
(prep) above (adj,
adv & prep) abroad
(adv) absent (adj)
absolutely (adv)
• The movie was absolutely
awful. accent(n)
• She has a beautiful
French accent. accept (v) access
(n)
• disabled access •
internet access accident
(n) accommodation (n)
accompany (v) according to
(prep phr) account (n)
accountant (n) accurate (adj)
ache (n) achieve (v) across (adv
& prep) act (n & v)
• in the second act (of the
play)
(n)
• to act in a play (v)
• to act strangely (v) action
(n) active (adj)
actor (n) actress
(n) actually
(adv)
I need to format that so each (dictionary) word is on one line, each line ending with (n) or (v) etc.
There are bullet point words or sentences in there that i want to completely remove, and the result would be...
ability (n)
able (adj)
about (adv & prep)
above (adj, adv & prep)
abroad (adv)
absent (adj)
absolutely (adv)
accent (n)
accept (v)
access (n)
accident (n)
accommodation (n)
accompany (v)
account (n)
accountant (n)
accurate (adj)
ache (n)
achieve (v)
across (adv & prep)
act (n & v)
action (n)
active (adj)
actor (n)
actress (n)
actually (adv)
Can anyone help with a regex pattern or something which can do that?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|